unsw.cse.mica.blackboard.transport.secure
Class SSLBlackboardConnection

java.lang.Object
  extended by unsw.cse.mica.blackboard.transport.secure.SSLBlackboardConnection
All Implemented Interfaces:
java.lang.Runnable, BlackboardConnection

public class SSLBlackboardConnection
extends java.lang.Object
implements BlackboardConnection, java.lang.Runnable


Constructor Summary
SSLBlackboardConnection(int port)
           
 
Method Summary
 void close()
          Closes the connection.
 boolean isOpen()
          Tests if the connection is open.
 void open()
          Opens the connection.
 void run()
           
 void setAgentConnectionHandler(BlackboardConnectionHandler handler)
          Specify the BlackboardConnectionHandler to use for this connection
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLBlackboardConnection

public SSLBlackboardConnection(int port)
Method Detail

setAgentConnectionHandler

public void setAgentConnectionHandler(BlackboardConnectionHandler handler)
Description copied from interface: BlackboardConnection
Specify the BlackboardConnectionHandler to use for this connection

Specified by:
setAgentConnectionHandler in interface BlackboardConnection
Parameters:
handler - the blackboard connection handler to be used by this connection

close

public void close()
           throws TransportException
Description copied from interface: BlackboardConnection
Closes the connection.

Specified by:
close in interface BlackboardConnection
Throws:
TransportException - If any errors occur when closing the connection.

isOpen

public boolean isOpen()
Description copied from interface: BlackboardConnection
Tests if the connection is open.

Specified by:
isOpen in interface BlackboardConnection
Returns:
true if the connection is open else false

open

public void open()
          throws TransportException
Description copied from interface: BlackboardConnection
Opens the connection.

Specified by:
open in interface BlackboardConnection
Throws:
TransportException - If any errors occur when opening the connection.

run

public void run()
Specified by:
run in interface java.lang.Runnable