Sergey Beryozkin created CAMEL-8383:
---------------------------------------
Summary: CXFRS Consumer processors should be able to use JAX-RS
contexts
Key: CAMEL-8383
URL: https://issues.apache.org/jira/browse/CAMEL-8383
Project: Camel
Issue Type: Improvement
Components: camel-cxf
Reporter: Sergey Beryozkin
Priority: Minor
Fix For: 2.15.0
CXFRS consumer processors should be able to use JAX-RS Contexts, for example,
instead of
{code:java}
String path = exchange.getIn().getHeader(Exchange.HTTP_PATH, String.class);
if (path.equals("/customers")) {
//...
}
{code}
do something like
{code:java}
javax.ws.rs.core.UriInfo ui = exchange.getProperty(UriInfo.class.getName(),
UriInfo.class);
if (ui.getPath().equals("/customers")) {
//...
}
{code}
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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)