java - JAX-RS: Resolve URI of Linked Resources on the Server -
is there standard way (jax-rs) resolve rest uris resources on server side? understand common practices, it's best provide full uri identifier resources. if want allow post/put document create/change product:
<product> [...] <categories> <category>http://.../rest/categories/12</category> <category>http://.../rest/categories/35</category> </categories> </product>
as can see, references categories resource uris. on server side have resolve these uris corresponding resources. simplest approach create client service on server , standard request on these uris. feel shouldn't necessary.
is there standard way this? there cxf way this? better provide additional id well?
thanks.
dominik
i think looking - http://jersey.java.net/nonav/apidocs/latest/jersey/com/sun/jersey/api/core/resourcecontext.html
it not cxf or jax-rs jersey. used parse documents in example.
inject using @context resource use it.
Comments
Post a Comment