Frage

Is there any way to have path parameters in a Rexster extension, i.e. the equivalent of Jersey's @PathParam?

From what I could see from the sample extensions, only query params appear to be available.

War es hilfreich?

Lösung

There is no easy way to work with path parameters in Rexster. You can however access the path and make programmatic decisions on that. You can look at the Frames Extension for an example of how to do it here.

The basic idea is to grab the UriInfo from the RexsterResourceContext. From there you can reason about the path in your code.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top