|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.component.cxf.DefaultCxfBinding
public class DefaultCxfBinding
The Default CXF binding implementation.
| Constructor Summary | |
|---|---|
DefaultCxfBinding()
|
|
| Method Summary | |
|---|---|
void |
copyJaxWsContext(org.apache.cxf.message.Exchange cxfExchange,
Map<String,Object> context)
Copy the javax.xml.ws* headers into cxfExchange's outMessage, if the cxfExchange has no outMessage, skip this copy |
protected void |
extractInvocationContextFromCamel(Exchange camelExchange,
Map<String,Object> camelHeaders,
Map<String,Object> cxfContext,
String contextKey)
|
void |
extractJaxWsContext(org.apache.cxf.message.Exchange cxfExchange,
Map<String,Object> context)
Extract the message headers which key are start from javax.xml.ws* from the CXF exchange's inMessage, and put these headers into the context |
static Object |
getBodyFromCamel(Message out,
DataFormat dataFormat)
|
protected static Object |
getContentFromCxf(org.apache.cxf.message.Message message,
DataFormat dataFormat)
|
HeaderFilterStrategy |
getHeaderFilterStrategy()
|
protected static List<Element> |
getPayloadBodyElements(org.apache.cxf.message.Message message)
|
protected org.apache.cxf.message.MessageContentsList |
getResponsePayloadList(org.apache.cxf.message.Exchange exchange,
List<Element> elements)
|
void |
populateCxfRequestFromExchange(org.apache.cxf.message.Exchange cxfExchange,
Exchange camelExchange,
Map<String,Object> requestContext)
This method is called by CxfProducer.process(Exchange). |
void |
populateCxfResponseFromExchange(Exchange camelExchange,
org.apache.cxf.message.Exchange cxfExchange)
This method is called by CxfConsumer to populate a CXF response exchange
from a Camel exchange. |
void |
populateExchangeFromCxfRequest(org.apache.cxf.message.Exchange cxfExchange,
Exchange camelExchange)
This method is called by CxfConsumer. |
void |
populateExchangeFromCxfResponse(Exchange camelExchange,
org.apache.cxf.message.Exchange cxfExchange,
Map<String,Object> responseContext)
This method is called by CxfProducer.process(Exchange). |
protected void |
propagateHeadersFromCamelToCxf(Exchange camelExchange,
Map<String,Object> camelHeaders,
org.apache.cxf.message.Exchange cxfExchange,
Map<String,Object> cxfContext)
|
protected void |
propagateHeadersFromCxfToCamel(org.apache.cxf.message.Message cxfMessage,
Message camelMessage,
Exchange exchange)
|
void |
setHeaderFilterStrategy(HeaderFilterStrategy strategy)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCxfBinding()
| Method Detail |
|---|
public void populateCxfRequestFromExchange(org.apache.cxf.message.Exchange cxfExchange,
Exchange camelExchange,
Map<String,Object> requestContext)
This method is called by CxfProducer.process(Exchange). It populates
the CXF exchange and invocation context (i.e. request/response) contexts, it
but does not create and populate a CXF message as a ClientImpl's invoke method
will create a new CXF Message. That method will put all properties from the
CXF exchange and request context to the CXF message.
populateCxfRequestFromExchange in interface CxfBindingcxfExchange - exchange to be populatedcamelExchange - exchange that contains a requestrequestContext - a map contains request contexts. This parameter must not
be null. The Client.invoke() method does not allow caller to
pass in a CXF Message. The request context are copied to the CXF Message by the
Client.invoke() method. This is how caller can set properties on the CXF message.
public void populateExchangeFromCxfResponse(Exchange camelExchange,
org.apache.cxf.message.Exchange cxfExchange,
Map<String,Object> responseContext)
CxfProducer.process(Exchange). It propagates
information from CXF Exchange to Camel Exchange. The CXF Exchange contains a
request from a CXF server.
populateExchangeFromCxfResponse in interface CxfBindingcamelExchange - exchanged to be populatedcxfExchange - exchange that contains a responseresponseContext - map contains response context from CXF
public void populateExchangeFromCxfRequest(org.apache.cxf.message.Exchange cxfExchange,
Exchange camelExchange)
CxfConsumer.
populateExchangeFromCxfRequest in interface CxfBindingcxfExchange - CXF exchange that contains a requestcamelExchange - Camel exchange to be populated
public void populateCxfResponseFromExchange(Exchange camelExchange,
org.apache.cxf.message.Exchange cxfExchange)
CxfConsumer to populate a CXF response exchange
from a Camel exchange.
populateCxfResponseFromExchange in interface CxfBindingcamelExchange - Camel exchange that contains an out messagecxfExchange - CXF exchange to be populatedpublic HeaderFilterStrategy getHeaderFilterStrategy()
getHeaderFilterStrategy in interface HeaderFilterStrategyAwarepublic void setHeaderFilterStrategy(HeaderFilterStrategy strategy)
setHeaderFilterStrategy in interface HeaderFilterStrategyAware
protected org.apache.cxf.message.MessageContentsList getResponsePayloadList(org.apache.cxf.message.Exchange exchange,
List<Element> elements)
protected void extractInvocationContextFromCamel(Exchange camelExchange,
Map<String,Object> camelHeaders,
Map<String,Object> cxfContext,
String contextKey)
camelExchange - cxfContext - Request or Response contextcamelHeaders - contextKey -
protected void propagateHeadersFromCxfToCamel(org.apache.cxf.message.Message cxfMessage,
Message camelMessage,
Exchange exchange)
cxfMessage - camelMessage - exchange - provides context for filtering
protected void propagateHeadersFromCamelToCxf(Exchange camelExchange,
Map<String,Object> camelHeaders,
org.apache.cxf.message.Exchange cxfExchange,
Map<String,Object> cxfContext)
protected static Object getContentFromCxf(org.apache.cxf.message.Message message,
DataFormat dataFormat)
protected static List<Element> getPayloadBodyElements(org.apache.cxf.message.Message message)
public static Object getBodyFromCamel(Message out,
DataFormat dataFormat)
public void copyJaxWsContext(org.apache.cxf.message.Exchange cxfExchange,
Map<String,Object> context)
CxfBindingCopy the javax.xml.ws* headers into cxfExchange's outMessage, if the cxfExchange has no outMessage, skip this copy
copyJaxWsContext in interface CxfBindingcxfExchange - CXF exchange to be populatedcontext - The map which used to store the message headers
public void extractJaxWsContext(org.apache.cxf.message.Exchange cxfExchange,
Map<String,Object> context)
CxfBindingExtract the message headers which key are start from javax.xml.ws* from the CXF exchange's inMessage, and put these headers into the context
extractJaxWsContext in interface CxfBindingcxfExchange - CXF exchange to be populatedcontext - The map which used to store the message headers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||