public class PreexistingConduitSelector extends Object implements ConduitSelector, Closeable
Constructor and Description |
---|
PreexistingConduitSelector(Conduit c)
Constructor.
|
PreexistingConduitSelector(Conduit c,
Endpoint e)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
complete(Exchange exchange)
Called on completion of the MEP for which the Conduit was required.
|
Endpoint |
getEndpoint() |
void |
prepare(Message message)
Called prior to the interceptor chain being traversed.
|
Conduit |
selectConduit(Message message)
Called when a Conduit is actually required.
|
void |
setEndpoint(Endpoint ep) |
public PreexistingConduitSelector(Conduit c)
c
- the pre-existing Conduit.public void prepare(Message message)
prepare
in interface ConduitSelector
message
- the current Messagepublic Conduit selectConduit(Message message)
selectConduit
in interface ConduitSelector
message
- public void complete(Exchange exchange)
complete
in interface ConduitSelector
exchange
- represents the completed MEPpublic Endpoint getEndpoint()
getEndpoint
in interface ConduitSelector
public void setEndpoint(Endpoint ep)
setEndpoint
in interface ConduitSelector
ep
- the endpoint to encapsulatepublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Apache CXF