Package org.apache.cxf.endpoint
Interface ConduitSelector
- 
- All Known Implementing Classes:
- AbstractConduitSelector,- DeferredConduitSelector,- NullConduitSelector,- PreexistingConduitSelector,- UpfrontConduitSelector
 
 public interface ConduitSelectorStrategy for retrieving a Conduit to mediate an outbound message. A specific instance implementing a particular strategy may be injected into the Client via config.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcomplete(Exchange exchange)Called on completion of the MEP for which the Conduit was required.EndpointgetEndpoint()voidprepare(Message message)Called prior to the interceptor chain being traversed.ConduitselectConduit(Message message)Called when a Conduit is actually required.voidsetEndpoint(Endpoint endpoint)
 
- 
- 
- 
Method Detail- 
preparevoid prepare(Message message) Called prior to the interceptor chain being traversed. This is the point at which an eager strategy would retrieve a Conduit.- Parameters:
- message- the current Message
 
 - 
selectConduitConduit selectConduit(Message message) Called when a Conduit is actually required. This is the point at which a lazy strategy would retrieve a Conduit.- Parameters:
- message-
- Returns:
- the Conduit to use for mediation of the message
 
 - 
completevoid complete(Exchange exchange) Called on completion of the MEP for which the Conduit was required. This is the point at which a one-shot strategy would dispose of the Conduit.- Parameters:
- exchange- represents the completed MEP
 
 - 
getEndpointEndpoint getEndpoint() - Returns:
- the encapsulated Endpoint
 
 - 
setEndpointvoid setEndpoint(Endpoint endpoint) - Parameters:
- endpoint- the Endpoint to encapsulate
 
 
- 
 
-