Description
CXFRS consumer processors should be able to use JAX-RS Contexts, for example, instead of
String path = exchange.getIn().getHeader(Exchange.HTTP_PATH, String.class); if (path.equals("/customers")) { //... }
do something like
javax.ws.rs.core.UriInfo ui = exchange.getProperty(UriInfo.class.getName(), UriInfo.class); if (ui.getPath().equals("/customers")) { //... }
This will make the processor code more JAX-RS friendly. Besides UriInfo, Request, HttpHeaders and other JAX-RS contexts offer a lot of utility methods for simplifying managing an HTTP request