public interface CxfRsBinding
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.MultivaluedMap<String,String> |
bindCamelHeadersToRequestHeaders(Map<String,Object> camelHeaders,
org.apache.camel.Exchange camelExchange)
Bind the camel headers to request headers that gets passed to CXF RS
WebClient APIs. |
Object |
bindCamelMessageBodyToRequestBody(org.apache.camel.Message camelMessage,
org.apache.camel.Exchange camelExchange)
Bind the camel in message body to a request body that gets passed
to CXF RS
WebClient APIs. |
javax.ws.rs.client.Entity<Object> |
bindCamelMessageToRequestEntity(Object body,
org.apache.camel.Message camelMessage,
org.apache.camel.Exchange camelExchange)
Bind the Camel message to a request
Entity that gets passed to AsyncInvoker.method(java.lang.String, javax.ws.rs.client.Entity, javax.ws.rs.client.InvocationCallback). |
Map<String,Object> |
bindResponseHeadersToCamelHeaders(Object response,
org.apache.camel.Exchange camelExchange)
Bind the response headers to camel out headers.
|
Object |
bindResponseToCamelBody(Object response,
org.apache.camel.Exchange camelExchange)
Bind the HTTP response body to camel out body
|
Object |
populateCxfRsResponseFromExchange(org.apache.camel.Exchange camelExchange,
org.apache.cxf.message.Exchange cxfExchange)
Populate the CxfRsResponse object from the camel exchange
|
void |
populateExchangeFromCxfRsRequest(org.apache.cxf.message.Exchange cxfExchange,
org.apache.camel.Exchange camelExchange,
Method method,
Object[] paramArray)
Populate the camel exchange from the CxfRsRequest, the exchange will be consumed
by the processor which the CxfRsConsumer attached.
|
void populateExchangeFromCxfRsRequest(org.apache.cxf.message.Exchange cxfExchange,
org.apache.camel.Exchange camelExchange,
Method method,
Object[] paramArray)
camelExchange - camel exchange objectcxfExchange - cxf exchange objectmethod - the method which is need for the camel componentparamArray - the parameter list for the method invocationObject populateCxfRsResponseFromExchange(org.apache.camel.Exchange camelExchange, org.apache.cxf.message.Exchange cxfExchange) throws Exception
camelExchange - camel exchange objectcxfExchange - cxf exchange objectException - can be thrown if error in the binding processObject bindCamelMessageBodyToRequestBody(org.apache.camel.Message camelMessage, org.apache.camel.Exchange camelExchange) throws Exception
WebClient APIs.camelMessage - the source messagecamelExchange - the Camel exchangeException - can be thrown if error in the binding processjavax.ws.rs.core.MultivaluedMap<String,String> bindCamelHeadersToRequestHeaders(Map<String,Object> camelHeaders, org.apache.camel.Exchange camelExchange) throws Exception
WebClient APIs.camelHeaders - the source headerscamelExchange - the Camel exchangeException - can be thrown if error in the binding processObject bindResponseToCamelBody(Object response, org.apache.camel.Exchange camelExchange) throws Exception
response - the responsecamelExchange - the exchangeException - can be thrown if error in the binding processMap<String,Object> bindResponseHeadersToCamelHeaders(Object response, org.apache.camel.Exchange camelExchange) throws Exception
response - the responsecamelExchange - the exchangeException - can be thrown if error in the binding processjavax.ws.rs.client.Entity<Object> bindCamelMessageToRequestEntity(Object body, org.apache.camel.Message camelMessage, org.apache.camel.Exchange camelExchange) throws Exception
Entity that gets passed to AsyncInvoker.method(java.lang.String, javax.ws.rs.client.Entity, javax.ws.rs.client.InvocationCallback).camelMessage - the source messagecamelExchange - the Camel exchangebody - the message bodyEntity to useException - can be thrown if error in the binding processApache Camel