Package org.apache.cxf.endpoint
Interface ConduitSelector
- All Known Implementing Classes:
AbstractConduitSelector,DeferredConduitSelector,NullConduitSelector,PreexistingConduitSelector,UpfrontConduitSelector
public interface ConduitSelector
Strategy 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 Summary
Modifier and TypeMethodDescriptionvoidCalled on completion of the MEP for which the Conduit was required.voidCalled prior to the interceptor chain being traversed.selectConduit(Message message) Called when a Conduit is actually required.voidsetEndpoint(Endpoint endpoint)
-
Method Details
-
prepare
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
-
selectConduit
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
-
complete
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
-
getEndpoint
Endpoint getEndpoint()- Returns:
- the encapsulated Endpoint
-
setEndpoint
- Parameters:
endpoint- the Endpoint to encapsulate
-