Class CamelDestination
java.lang.Object
org.apache.cxf.transport.AbstractObservable
org.apache.cxf.transport.AbstractDestination
org.apache.camel.component.cxf.transport.CamelDestination
- All Implemented Interfaces:
org.apache.cxf.configuration.Configurable,org.apache.cxf.transport.Destination,org.apache.cxf.transport.DestinationWithEndpoint,org.apache.cxf.transport.Observable
public class CamelDestination
extends org.apache.cxf.transport.AbstractDestination
implements org.apache.cxf.configuration.Configurable
Forwards messages from Camel to CXF and the CXF response back to Camel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classNested classes/interfaces inherited from class org.apache.cxf.transport.AbstractDestination
org.apache.cxf.transport.AbstractDestination.AbstractBackChannelConduit -
Field Summary
FieldsFields inherited from class org.apache.cxf.transport.AbstractDestination
bus, endpointInfo, referenceFields inherited from class org.apache.cxf.transport.AbstractObservable
incomingObserver -
Constructor Summary
ConstructorsConstructorDescriptionCamelDestination(org.apache.camel.CamelContext camelContext, org.apache.cxf.Bus bus, org.apache.cxf.transport.ConduitInitiator ci, org.apache.cxf.service.model.EndpointInfo info) CamelDestination(org.apache.camel.CamelContext camelContext, org.apache.cxf.Bus bus, org.apache.cxf.transport.ConduitInitiator ci, org.apache.cxf.service.model.EndpointInfo info, org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy, boolean checkException) -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()voidorg.apache.camel.CamelContextprotected org.apache.cxf.transport.ConduitInitiatorprotected org.apache.cxf.transport.ConduitgetInbuiltBackChannel(org.apache.cxf.message.Message inMessage) protected Loggerprotected voidincoming(org.apache.camel.Exchange camelExchange) booleanprotected booleanmarkPartialResponse(org.apache.cxf.message.Message partialResponse, org.apache.cxf.ws.addressing.EndpointReferenceType decoupledTarget) Mark message as a partial message.protected voidpropagateResponseHeadersToCamel(org.apache.cxf.message.Message outMessage, org.apache.camel.Exchange camelExchange) voidsetCamelContext(org.apache.camel.CamelContext camelContext) voidsetCheckException(boolean exception) voidshutdown()Methods inherited from class org.apache.cxf.transport.AbstractDestination
getAddress, getBackChannel, getEndpointInfoMethods inherited from class org.apache.cxf.transport.AbstractObservable
getMessageObserver, getTargetReference, getTargetReference, setMessageObserverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cxf.transport.Destination
getMessageObserverMethods inherited from interface org.apache.cxf.transport.Observable
setMessageObserver
-
Field Details
-
BASE_BEAN_NAME_SUFFIX
- See Also:
-
-
Constructor Details
-
CamelDestination
public CamelDestination(org.apache.camel.CamelContext camelContext, org.apache.cxf.Bus bus, org.apache.cxf.transport.ConduitInitiator ci, org.apache.cxf.service.model.EndpointInfo info) -
CamelDestination
public CamelDestination(org.apache.camel.CamelContext camelContext, org.apache.cxf.Bus bus, org.apache.cxf.transport.ConduitInitiator ci, org.apache.cxf.service.model.EndpointInfo info, org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy, boolean checkException)
-
-
Method Details
-
getLogger
- Specified by:
getLoggerin classorg.apache.cxf.transport.AbstractObservable
-
setCheckException
public void setCheckException(boolean exception) -
isCheckException
public boolean isCheckException() -
getInbuiltBackChannel
protected org.apache.cxf.transport.Conduit getInbuiltBackChannel(org.apache.cxf.message.Message inMessage) - Specified by:
getInbuiltBackChannelin classorg.apache.cxf.transport.AbstractDestination- Parameters:
inMessage- the incoming message- Returns:
- the inbuilt backchannel
-
activate
public void activate()- Overrides:
activatein classorg.apache.cxf.transport.AbstractObservable
-
deactivate
public void deactivate()- Overrides:
deactivatein classorg.apache.cxf.transport.AbstractObservable
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceorg.apache.cxf.transport.Destination- Overrides:
shutdownin classorg.apache.cxf.transport.AbstractDestination
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext() -
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) -
incoming
protected void incoming(org.apache.camel.Exchange camelExchange) -
getBeanName
- Specified by:
getBeanNamein interfaceorg.apache.cxf.configuration.Configurable
-
getCamelDestinationUri
-
markPartialResponse
protected boolean markPartialResponse(org.apache.cxf.message.Message partialResponse, org.apache.cxf.ws.addressing.EndpointReferenceType decoupledTarget) Mark message as a partial message.- Parameters:
partialResponse- the partial response messagedecoupledTarget- the decoupled target- Returns:
- true if partial responses is supported
-
getConduitInitiator
protected org.apache.cxf.transport.ConduitInitiator getConduitInitiator()- Returns:
- the associated conduit initiator
-
propagateResponseHeadersToCamel
protected void propagateResponseHeadersToCamel(org.apache.cxf.message.Message outMessage, org.apache.camel.Exchange camelExchange)
-