Hi
On 07/03/13 05:12, Jason Chaffee wrote:
I would like to do something similar to the order/product example outlined here:

http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-Subresourcelocators.


However, I would like to have my CustomerService.getOrder(String id) and the 
the Order.getProduct(String id) return Response objects so that I can customize 
the headers.  However, when I do that, it doesn't seem to work.  I have to 
return the raw entity objects.


I would think it could be smart enough to grab the entity object out of the 
Response object and still find the correct path.

Do you mean you are actually returning Response from subresource locator ? For example,

Path("/")
public class Root {
@Path("/sub")
public Response getSubResource() {
  ...
}
}

if not, can you please type an example here ?

In the wiki example, returning Response from Order.getProduct really has to work but not if Response returned from CustomerService.getOrder,

Sergey


Any thoughts?

Jason


Reply via email to