質問

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.

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top