Project JXTA

net.jxta.impl.endpoint.tls
Class TlsManager

java.lang.Object
  extended bynet.jxta.impl.endpoint.tls.TlsManager
All Implemented Interfaces:
EndpointListener

class TlsManager
extends Object
implements EndpointListener

Manages the connection pool between peers.


Constructor Summary
(package private) TlsManager(TlsTransport tp)
          Standard Constructor for TLS Manager
 
Method Summary
(package private)  void close()
          Close this manager.
(package private)  TlsConn getTlsConn(EndpointAddress dstAddr)
          Returns or creates a TLS Connection to the specified peer.
 void processIncomingMessage(Message msg, EndpointAddress srcAddr, EndpointAddress dstAddr)
          Handle an incoming message from the endpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TlsManager

TlsManager(TlsTransport tp)
Standard Constructor for TLS Manager

Method Detail

close

void close()
Close this manager. This involves closing all registered connections.


getTlsConn

TlsConn getTlsConn(EndpointAddress dstAddr)
Returns or creates a TLS Connection to the specified peer. If an existing connection exists, it will be returned.

Parameters:
dstAddr - the EndpointAddress of the remote peer.
Returns:
A TLS Connection or null if the connection could not be opened.

processIncomingMessage

public void processIncomingMessage(Message msg,
                                   EndpointAddress srcAddr,
                                   EndpointAddress dstAddr)
Handle an incoming message from the endpoint. This method demultiplexes incoming messages to the connection objects by their source address.

Several types of messages may be received for a connection:

Specified by:
processIncomingMessage in interface EndpointListener
Parameters:
msg - is the incoming message
srcAddr - is the address of the source of the message
dstAddr - is the address of the destination of the message

JXTA J2SE