camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-8383) CXFRS Consumer processors should be able to use JAX-RS contexts
Date Mon, 09 Mar 2015 16:48:38 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-8383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14353188#comment-14353188
] 

Sergey Beryozkin commented on CAMEL-8383:
-----------------------------------------

Done, thanks;  I'll need to add a couple of code examples showing the new options in action,
will deal with it shortly

> 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
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.15.0
>
>         Attachments: patch8383.txt
>
>
> 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)

Mime
View raw message