You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2009/06/22 11:26:35 UTC
[jira] Created: (CAMEL-1737) support Http central client API in
camel-cxfrs producer
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: New Feature
Reporter: Willem Jiang
Assignee: Willem Jiang
Fix For: 2.0.0
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.
[jira] Commented: (CAMEL-1737) support Http central client API in
camel-cxfrs producer
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52567#action_52567 ]
Willem Jiang commented on CAMEL-1737:
-------------------------------------
Added an Unit test to show how to send the request with WebClient in camel-cxfrs producer.
https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducerTest.java
> 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.0
>
>
> 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.
[jira] Updated: (CAMEL-1737) support Http central client API in
camel-cxfrs producer
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang updated CAMEL-1737:
--------------------------------
Issue Type: Sub-task (was: New Feature)
Parent: CAMEL-720
> 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.0
>
>
> 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.
[jira] Resolved: (CAMEL-1737) support Http central client API in
camel-cxfrs producer
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-1737.
---------------------------------
Resolution: Fixed
trunk
http://svn.apache.org/viewvc?rev=787210&view=rev
> 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.0
>
>
> 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.
[jira] Commented: (CAMEL-1737) support Http central client API in
camel-cxfrs producer
Posted by "William Tam (JIRA)" <ji...@apache.org>.
[ 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.