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