Package org.apache.cxf.endpoint
Class PreexistingConduitSelector
java.lang.Object
org.apache.cxf.endpoint.PreexistingConduitSelector
- All Implemented Interfaces:
Closeable,AutoCloseable,ConduitSelector
Strategy for retreival of a pre-existing Conduit to mediate an
outbound message.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidCalled 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 ep)
-
Constructor Details
-
PreexistingConduitSelector
Constructor.- Parameters:
c- the pre-existing Conduit.
-
PreexistingConduitSelector
Constructor.- Parameters:
c- the pre-existing Conduit.e- the target Endpoint
-
-
Method Details
-
prepare
Called prior to the interceptor chain being traversed.- Specified by:
preparein interfaceConduitSelector- Parameters:
message- the current Message
-
selectConduit
Called when a Conduit is actually required.- Specified by:
selectConduitin interfaceConduitSelector- 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.- Specified by:
completein interfaceConduitSelector- Parameters:
exchange- represents the completed MEP
-
getEndpoint
- Specified by:
getEndpointin interfaceConduitSelector- Returns:
- the encapsulated Endpoint
-
setEndpoint
- Specified by:
setEndpointin interfaceConduitSelector- Parameters:
ep- the endpoint to encapsulate
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-