|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CxfRsBinding
Interface to bind between Camel and CXF exchange for RESTful resources.
| Method Summary | |
|---|---|
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
bindCamelHeadersToRequestHeaders(java.util.Map<java.lang.String,java.lang.Object> camelHeaders,
org.apache.camel.Exchange camelExchange)
Bind the camel headers to request headers that gets passed to CXF RS WebClient APIs. |
java.lang.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. |
java.util.Map<java.lang.String,java.lang.Object> |
bindResponseHeadersToCamelHeaders(java.lang.Object response,
org.apache.camel.Exchange camelExchange)
Bind the response headers to camel out headers. |
java.lang.Object |
bindResponseToCamelBody(java.lang.Object response,
org.apache.camel.Exchange camelExchange)
Bind the HTTP response body to camel out body |
java.lang.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,
java.lang.reflect.Method method,
java.lang.Object[] paramArray)
Populate the camel exchange from the CxfRsRequest, the exchange will be consumed by the processor which the CxfRsConsumer attached. |
| Method Detail |
|---|
void populateExchangeFromCxfRsRequest(org.apache.cxf.message.Exchange cxfExchange,
org.apache.camel.Exchange camelExchange,
java.lang.reflect.Method method,
java.lang.Object[] paramArray)
camelExchange - camel exchange objectcxfExchange - cxf exchange objectmethod - the method which is need for the camel componentparamArray - the parameter list for the method invocation
java.lang.Object populateCxfRsResponseFromExchange(org.apache.camel.Exchange camelExchange,
org.apache.cxf.message.Exchange cxfExchange)
throws java.lang.Exception
camelExchange - camel exchange objectcxfExchange - cxf exchange object
java.lang.Exception - can be thrown if error in the binding process
java.lang.Object bindCamelMessageBodyToRequestBody(org.apache.camel.Message camelMessage,
org.apache.camel.Exchange camelExchange)
throws java.lang.Exception
WebClient APIs.
camelMessage - the source messagecamelExchange - the Camel exchange
java.lang.Exception - can be thrown if error in the binding process
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> bindCamelHeadersToRequestHeaders(java.util.Map<java.lang.String,java.lang.Object> camelHeaders,
org.apache.camel.Exchange camelExchange)
throws java.lang.Exception
WebClient APIs.
camelHeaders - the source headerscamelExchange - the Camel exchange
java.lang.Exception - can be thrown if error in the binding process
java.lang.Object bindResponseToCamelBody(java.lang.Object response,
org.apache.camel.Exchange camelExchange)
throws java.lang.Exception
response - the responsecamelExchange - the exchange
java.lang.Exception - can be thrown if error in the binding process
java.util.Map<java.lang.String,java.lang.Object> bindResponseHeadersToCamelHeaders(java.lang.Object response,
org.apache.camel.Exchange camelExchange)
throws java.lang.Exception
response - the responsecamelExchange - the exchange
java.lang.Exception - can be thrown if error in the binding process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||