Package org.apache.cxf.transport
Class AbstractDestination
java.lang.Object
org.apache.cxf.transport.AbstractObservable
org.apache.cxf.transport.AbstractDestination
- All Implemented Interfaces:
- Destination,- DestinationWithEndpoint,- Observable
- Direct Known Subclasses:
- AbstractMultiplexDestination
public abstract class AbstractDestination
extends AbstractObservable
implements Destination, DestinationWithEndpoint
Abstract base class factoring out common Destination logic,
 allowing non-decoupled transports to be written without any
 regard for the decoupled back-channel or partial response logic.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected classBackchannel conduit.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Busprotected final EndpointInfoprotected final org.apache.cxf.ws.addressing.EndpointReferenceTypeFields inherited from class org.apache.cxf.transport.AbstractObservableincomingObserver
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractDestination(Bus b, org.apache.cxf.ws.addressing.EndpointReferenceType ref, EndpointInfo ei) AbstractDestination(org.apache.cxf.ws.addressing.EndpointReferenceType ref, EndpointInfo ei) 
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.cxf.ws.addressing.EndpointReferenceTypegetBackChannel(Message inMessage) Retrieve a back-channel Conduit, which must be policy-compatible with the current Message and associated Destination.Return the ServiceModel endpoint description for this destination.protected abstract ConduitgetInbuiltBackChannel(Message inMessage) voidshutdown()Shutdown the Destination, i.e. stop accepting incoming messages.Methods inherited from class org.apache.cxf.transport.AbstractObservableactivate, deactivate, getLogger, getMessageObserver, getTargetReference, getTargetReference, setMessageObserverMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cxf.transport.DestinationgetMessageObserverMethods inherited from interface org.apache.cxf.transport.ObservablesetMessageObserver
- 
Field Details- 
referenceprotected final org.apache.cxf.ws.addressing.EndpointReferenceType reference
- 
endpointInfo
- 
bus
 
- 
- 
Constructor Details- 
AbstractDestination
- 
AbstractDestinationpublic AbstractDestination(Bus b, org.apache.cxf.ws.addressing.EndpointReferenceType ref, EndpointInfo ei) 
 
- 
- 
Method Details- 
getAddresspublic org.apache.cxf.ws.addressing.EndpointReferenceType getAddress()- Specified by:
- getAddressin interface- Destination
- Returns:
- the reference associated with this Destination
 
- 
getBackChannelRetrieve a back-channel Conduit, which must be policy-compatible with the current Message and associated Destination. For example compatible Quality of Protection must be asserted on the back-channel. This would generally only be an issue if the back-channel is decoupled.- Specified by:
- getBackChannelin interface- Destination
- Parameters:
- inMessage- the current inbound message (null to indicate a disassociated back-channel)
- Returns:
- a suitable Conduit
- Throws:
- IOException
 
- 
shutdownpublic void shutdown()Shutdown the Destination, i.e. stop accepting incoming messages.- Specified by:
- shutdownin interface- Destination
 
- 
getInbuiltBackChannel- Parameters:
- inMessage- the incoming message
- Returns:
- the inbuilt backchannel
 
- 
getEndpointInfoReturn the ServiceModel endpoint description for this destination.- Specified by:
- getEndpointInfoin interface- DestinationWithEndpoint
- Returns:
- the endpoint description.
 
 
-