oracle.stellent.ridc.protocol.intradoc.socket
Class SocketConnectionManager

java.lang.Object
  extended by oracle.stellent.ridc.protocol.intradoc.socket.SocketConnectionManager
All Implemented Interfaces:
ConnectionManager<SocketConnection,IntradocClientConfig>
Direct Known Subclasses:
SSLSocketConnectionManager

public class SocketConnectionManager
extends java.lang.Object
implements ConnectionManager<SocketConnection,IntradocClientConfig>


Constructor Summary
SocketConnectionManager()
           
 
Method Summary
 void cleanupConnection(SocketConnection connection)
          Cleanup the connection on this service request
 SocketConnection createConnection(IntradocClientConfig clientConfig)
          Create a new connection.
 void initializeConnection(SocketConnection connection)
          Initialize a connection aquired from the threading model to use with this service request object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketConnectionManager

public SocketConnectionManager()
Method Detail

initializeConnection

public void initializeConnection(SocketConnection connection)
                          throws ProtocolException
Initialize a connection aquired from the threading model to use with this service request object.

Specified by:
initializeConnection in interface ConnectionManager<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 interface ConnectionManager<SocketConnection,IntradocClientConfig>
Parameters:
clientConfig - the client configuration
Returns:
the new connection
Throws:
ProtocolException

cleanupConnection

public void cleanupConnection(SocketConnection connection)
Cleanup the connection on this service request

Specified by:
cleanupConnection in interface ConnectionManager<SocketConnection,IntradocClientConfig>
Parameters:
connection - the protocol connection


Copyright © 2008-2009 Oracle Corporation. All Rights Reserved.