Class SocketConnectionManager
java.lang.Object
oracle.stellent.ridc.protocol.intradoc.socket.SocketConnectionManager
- All Implemented Interfaces:
ConnectionManager<SocketConnection,
IntradocClientConfig>
- Direct Known Subclasses:
SSLSocketConnectionManager
public class SocketConnectionManager
extends Object
implements ConnectionManager<SocketConnection,IntradocClientConfig>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanupConnection
(SocketConnection connection) Cleanup the connection on this service requestcreateConnection
(IntradocClientConfig clientConfig) Create a new connection.void
initializeConnection
(SocketConnection connection) Initialize a connection acquired from the threading model to use with this service request object.
-
Constructor Details
-
SocketConnectionManager
public SocketConnectionManager()
-
-
Method Details
-
initializeConnection
Initialize a connection acquired from the threading model to use with this service request object.- Specified by:
initializeConnection
in interfaceConnectionManager<SocketConnection,
IntradocClientConfig> - Parameters:
connection
- the connection- Throws:
ProtocolException
-
createConnection
public SocketConnection createConnection(IntradocClientConfig clientConfig) throws ProtocolException Create a new connection. This will be called to populate the threading model. This connection should be uninitialized.- Specified by:
createConnection
in interfaceConnectionManager<SocketConnection,
IntradocClientConfig> - Parameters:
clientConfig
- the client configuration- Returns:
- the new connection
- Throws:
ProtocolException
-
cleanupConnection
Cleanup the connection on this service request- Specified by:
cleanupConnection
in interfaceConnectionManager<SocketConnection,
IntradocClientConfig> - Parameters:
connection
- the protocol connection
-