Package oracle.stellent.ridc.protocol
Interface ConnectionManager<TConnection extends Connection,TClientConfig extends IdcClientConfig>
- All Known Implementing Classes:
IdcHttpConnectionManager,JaxWSConnectionManager,SocketConnectionManager,SSLSocketConnectionManager
@Exported
public interface ConnectionManager<TConnection extends Connection,TClientConfig extends IdcClientConfig>
Provides common lifecycle methods for different connection implementations and protocols
-
Method Summary
Modifier and TypeMethodDescriptionvoidcleanupConnection(TConnection connection) Cleanup the connection on this service requestcreateConnection(TClientConfig clientConfig) Create a new connection.voidinitializeConnection(TConnection connection) Initialize a connection acquired from the threading model to use with this service request object.
-
Method Details
-
createConnection
Create a new connection. This will be called to populate the threading model. This connection should be initialized and cleaned up.- Parameters:
clientConfig- the client configuration- Returns:
- the new connection
- Throws:
ProtocolException
-
initializeConnection
Initialize a connection acquired from the threading model to use with this service request object.- Parameters:
connection- the connection- Throws:
ProtocolException
-
cleanupConnection
Cleanup the connection on this service request- Parameters:
connection- the connection
-