Package org.apache.cxf.endpoint
Class NullConduitSelector
- java.lang.Object
-
- org.apache.cxf.endpoint.NullConduitSelector
-
- All Implemented Interfaces:
ConduitSelector
public class NullConduitSelector extends Object implements ConduitSelector
Strategy for null Conduit retrieval. An instance of this class is set on the Exchange to clear the current ConduitSelector, as a work-around for broken Exchange.remove(ConduitSelector.class) semantics.
-
-
Constructor Summary
Constructors Constructor Description NullConduitSelector()
-
Method Summary
All Methods Instance Methods Concrete 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 ep)
-
-
-
Method Detail
-
prepare
public void prepare(Message message)
Called prior to the interceptor chain being traversed.- Specified by:
preparein interfaceConduitSelector- Parameters:
message- the current Message
-
selectConduit
public Conduit selectConduit(Message message)
Called when a Conduit is actually required.- Specified by:
selectConduitin interfaceConduitSelector- Parameters:
message-- Returns:
- the Conduit to use for mediation of the message
-
complete
public void complete(Exchange exchange)
Called on completion of the MEP for which the Conduit was required.- Specified by:
completein interfaceConduitSelector- Parameters:
exchange- represents the completed MEP
-
getEndpoint
public Endpoint getEndpoint()
- Specified by:
getEndpointin interfaceConduitSelector- Returns:
- the encapsulated Endpoint
-
setEndpoint
public void setEndpoint(Endpoint ep)
- Specified by:
setEndpointin interfaceConduitSelector- Parameters:
ep- the endpoint to encapsulate
-
-