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

William Tam commented on CAMEL-1737:
------------------------------------

Submitted revision 801457 for the following enhancements.

* The "WebClient-centric" camel-cxfrs producer can now propagate headers 
to/from camel exchange.  It uses the standard header filtering mechanism so it 
can be customized.

* User can plug a custom CxfRsBinding implementation to affect the binding in 
the provider.

* By default, it drops the internal headers such as CamelCxfRsUsingHttpAPI (see 
the list in CxfRsHeaderFilterStrategy).

* Only If the "CamelCxfRsResponseClass" header is NOT set (the default) or if 
it is set to javax.ws.rs.core.Response, HTTP response headers and HTTP response 
code are propagated then to Camel.  (It is a limitation in WebClient APIs).

* By default, the out message body is a javax.ws.rs.core.Response object if 
CamelCxfRsResponseClass is NOT set.  This gives users a bit more flexibility.  
For example, the WebClient would throw exception if response code is not equal 
to 200 when the response class is specified.  A converter is created to convert 
from a Response to an InputStream.  Users can still get the old behavior by 
setting the CamelCxfRsResponseClass header to InputStream class.

* Make sure setEndpointHeaderFilterStrategy() in called on non-spring 
configured CXF/CXF RS endpoints

* Remove component local header "CamelCxfRsMethod" and use the one defined in 
Exchange.java (CamelHttpMethod) instead.



> support Http central client API in camel-cxfrs producer 
> --------------------------------------------------------
>
>                 Key: CAMEL-1737
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1737
>             Project: Apache Camel
>          Issue Type: Sub-task
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.0-M3
>
>
> CXF  JAXRS endpoint provides a Http central client API , camel-cxfrs 
> component should leverage this API to give user more choice.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to