Question

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.

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top