meinereiner85
Mitglied
Hallo alle zusammen,
ich habe eine Frage bzgl. der Resourcen in JAX-RS:
Nehmen wir an ich habe folgende Ressourcen (festgelegt durch @Path-Annotationen):
/hello
/hello/world
/hello/a
/hello/a/b
/hello/a/b/c
/info
Durch die application.wadl bekomme ich ja eine gute Übersicht über alle Resourcen.
Bekomme ich dies auch in meiner Applikation hin?
Konkret ist dieFrage ob ich es schaffe im Handler von /info eineListe aller Resourcen bekommen kann oder ob ich zumindest in /hello alle in der URL tiefer gelagerte Resourcen finden kann?
Hat jemand eine Idee?
Es gibt schon einige Tricks. Zum Beispiel kann ich mir das Resource-Package geben lassen und dann selbst nach den Annotationen suchen aber das muss doch auch einfacher durch das Framework gehen oder? Ich habe aber bisher noch nichts finden können.
Ich würde mich über ein paar Tipps sehr freuen.
Meinereiner
ich habe eine Frage bzgl. der Resourcen in JAX-RS:
Nehmen wir an ich habe folgende Ressourcen (festgelegt durch @Path-Annotationen):
/hello
/hello/world
/hello/a
/hello/a/b
/hello/a/b/c
/info
Durch die application.wadl bekomme ich ja eine gute Übersicht über alle Resourcen.
Bekomme ich dies auch in meiner Applikation hin?
Konkret ist dieFrage ob ich es schaffe im Handler von /info eineListe aller Resourcen bekommen kann oder ob ich zumindest in /hello alle in der URL tiefer gelagerte Resourcen finden kann?
Hat jemand eine Idee?
Es gibt schon einige Tricks. Zum Beispiel kann ich mir das Resource-Package geben lassen und dann selbst nach den Annotationen suchen aber das muss doch auch einfacher durch das Framework gehen oder? Ich habe aber bisher noch nichts finden können.
Ich würde mich über ein paar Tipps sehr freuen.
Meinereiner