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
 
 public abstract class AbstractConduitSelector extends Object implements ConduitSelector, Closeable Abstract base class holding logic common to any ConduitSelector that retrieves a Conduit from the ConduitInitiator.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCONDUIT_COMPARE_FULL_URLprotected List<Conduit>conduitsprotected Endpointendpointprotected static StringKEEP_CONDUIT_ALIVE
 - 
Constructor SummaryConstructors Constructor Description AbstractConduitSelector()AbstractConduitSelector(Conduit c)Constructor, allowing a specific conduit to override normal selection.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()voidcomplete(Exchange exchange)Called on completion of the MEP for which the Conduit was required.protected ConduitcreateConduit(Message message, Exchange exchange, ConduitInitiator conduitInitiator)protected ConduitfindCompatibleConduit(Message message)If address protocol was changed, conduit should be re-initialisedEndpointgetEndpoint()protected abstract LoggergetLogger()protected ConduitgetSelectedConduit(Message message)Mechanics to actually get the Conduit from the ConduitInitiator if necessary.protected voidremoveConduit(Conduit conduit)protected booleanreplaceEndpointAddressPropertyIfNeeded(Message message, String endpointAddress, Conduit cond)voidsetEndpoint(Endpoint ep)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.cxf.endpoint.ConduitSelectorprepare, selectConduit
 
- 
 
- 
- 
- 
Field Detail- 
CONDUIT_COMPARE_FULL_URLpublic static final String CONDUIT_COMPARE_FULL_URL - See Also:
- Constant Field Values
 
 - 
KEEP_CONDUIT_ALIVEprotected static final String KEEP_CONDUIT_ALIVE - See Also:
- Constant Field Values
 
 - 
endpointprotected Endpoint endpoint 
 
- 
 - 
Constructor Detail- 
AbstractConduitSelectorpublic AbstractConduitSelector() 
 - 
AbstractConduitSelectorpublic AbstractConduitSelector(Conduit c) Constructor, allowing a specific conduit to override normal selection.- Parameters:
- c- specific conduit
 
 
- 
 - 
Method Detail- 
closepublic void close() - Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
 
 - 
removeConduitprotected void removeConduit(Conduit conduit) 
 - 
getSelectedConduitprotected Conduit getSelectedConduit(Message message) Mechanics to actually get the Conduit from the ConduitInitiator if necessary.- Parameters:
- message- the current Message
 
 - 
createConduitprotected Conduit createConduit(Message message, Exchange exchange, ConduitInitiator conduitInitiator) throws IOException - Throws:
- IOException
 
 - 
replaceEndpointAddressPropertyIfNeededprotected boolean replaceEndpointAddressPropertyIfNeeded(Message message, String endpointAddress, Conduit cond) 
 - 
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
 
 - 
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
 
 - 
getLoggerprotected abstract Logger getLogger() - Returns:
- the logger to use
 
 
- 
 
-