Package org.apache.cxf.endpoint
Class PreexistingConduitSelector
- java.lang.Object
- 
- org.apache.cxf.endpoint.PreexistingConduitSelector
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- ConduitSelector
 
 public class PreexistingConduitSelector extends Object implements ConduitSelector, Closeable Strategy for retreival of a pre-existing Conduit to mediate an outbound message.
- 
- 
Constructor SummaryConstructors Constructor Description PreexistingConduitSelector(Conduit c)Constructor.PreexistingConduitSelector(Conduit c, Endpoint e)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()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)
 
- 
- 
- 
Constructor Detail- 
PreexistingConduitSelectorpublic PreexistingConduitSelector(Conduit c) Constructor.- Parameters:
- c- the pre-existing Conduit.
 
 
- 
 - 
Method Detail- 
preparepublic void prepare(Message message) Called prior to the interceptor chain being traversed.- Specified by:
- preparein interface- ConduitSelector
- Parameters:
- message- the current Message
 
 - 
selectConduitpublic Conduit selectConduit(Message message) Called when a Conduit is actually required.- Specified by:
- selectConduitin interface- ConduitSelector
- Parameters:
- message-
- Returns:
- the Conduit to use for mediation of the message
 
 - 
completepublic void complete(Exchange exchange) Called on completion of the MEP for which the Conduit was required.- Specified by:
- completein interface- ConduitSelector
- Parameters:
- exchange- represents the completed MEP
 
 - 
getEndpointpublic Endpoint getEndpoint() - Specified by:
- getEndpointin interface- ConduitSelector
- Returns:
- the encapsulated Endpoint
 
 - 
setEndpointpublic void setEndpoint(Endpoint ep) - Specified by:
- setEndpointin interface- ConduitSelector
- Parameters:
- ep- the endpoint to encapsulate
 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Throws:
- IOException
 
 
- 
 
-