Package org.apache.cxf.endpoint
Class AbstractConduitSelector
java.lang.Object
org.apache.cxf.endpoint.AbstractConduitSelector
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ConduitSelector
- Direct Known Subclasses:
DeferredConduitSelector
,UpfrontConduitSelector
Abstract base class holding logic common to any ConduitSelector
that retrieves a Conduit from the ConduitInitiator.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructor, allowing a specific conduit to override normal selection. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
Called on completion of the MEP for which the Conduit was required.protected Conduit
createConduit
(Message message, Exchange exchange, ConduitInitiator conduitInitiator) protected Conduit
findCompatibleConduit
(Message message) If address protocol was changed, conduit should be re-initialisedprotected abstract Logger
protected Conduit
getSelectedConduit
(Message message) Mechanics to actually get the Conduit from the ConduitInitiator if necessary.protected void
removeConduit
(Conduit conduit) protected boolean
replaceEndpointAddressPropertyIfNeeded
(Message message, String endpointAddress, Conduit cond) void
setEndpoint
(Endpoint ep) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.cxf.endpoint.ConduitSelector
prepare, selectConduit
-
Field Details
-
CONDUIT_COMPARE_FULL_URL
- See Also:
-
KEEP_CONDUIT_ALIVE
- See Also:
-
conduits
-
endpoint
-
-
Constructor Details
-
AbstractConduitSelector
public AbstractConduitSelector() -
AbstractConduitSelector
Constructor, allowing a specific conduit to override normal selection.- Parameters:
c
- specific conduit
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
removeConduit
-
getSelectedConduit
Mechanics to actually get the Conduit from the ConduitInitiator if necessary.- Parameters:
message
- the current Message
-
createConduit
protected Conduit createConduit(Message message, Exchange exchange, ConduitInitiator conduitInitiator) throws IOException - Throws:
IOException
-
replaceEndpointAddressPropertyIfNeeded
-
getEndpoint
- Specified by:
getEndpoint
in interfaceConduitSelector
- Returns:
- the encapsulated Endpoint
-
setEndpoint
- Specified by:
setEndpoint
in interfaceConduitSelector
- Parameters:
ep
- the endpoint to encapsulate
-
complete
Called on completion of the MEP for which the Conduit was required.- Specified by:
complete
in interfaceConduitSelector
- Parameters:
exchange
- represents the completed MEP
-
getLogger
- Returns:
- the logger to use
-
findCompatibleConduit
If address protocol was changed, conduit should be re-initialised- Parameters:
message
- the current Message
-