com.maverick.sshd
Class ConnectionManager

java.lang.Object
  extended by com.maverick.sshd.ConnectionManager

public class ConnectionManager
extends java.lang.Object

This class holds the current sessions by TransportProtocol and ConnectionProtocol. The TransportProtocol objects can be used during authentication whilst the ConnectionProtocol objects can be used anytime after authentication. Do not attempt to get a ConnectionProtocol instance before or during user authentication as it is not created until the user has successfully authenticated.

Author:
Lee David Painter

Method Summary
 ConnectionProtocol getConnection(byte[] sessionid)
          Get an instance of the ConnectionProtocol based on session id.
 ConnectionProtocol[] getConnections()
          Get all the active connections.
static ConnectionManager getInstance()
          Get the only instance of the ConnectionManager
 TransportProtocol getTransport(byte[] sessionid)
          Get an instance of the TransportProtocol based on session id.
 TransportProtocol[] getTransports()
          Get all the active transports.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ConnectionManager getInstance()
Get the only instance of the ConnectionManager

Returns:
ConnectionManager

getConnection

public ConnectionProtocol getConnection(byte[] sessionid)
Get an instance of the ConnectionProtocol based on session id.

Parameters:
sessionid - byte[]
Returns:
ConnectionProtocol

getConnections

public ConnectionProtocol[] getConnections()
Get all the active connections.

Returns:
ConnectionProtocol[]

getTransport

public TransportProtocol getTransport(byte[] sessionid)
Get an instance of the TransportProtocol based on session id.

Parameters:
sessionid - byte[]
Returns:
TransportProtocol

getTransports

public TransportProtocol[] getTransports()
Get all the active transports.

Returns:
TransportProtocol[]


Copyright © 2003-2004 3SP LTD. All Rights Reserved.