|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunsw.cse.mica.agent.transport.secure.SSLAgentConnection
public class SSLAgentConnection
An implementation of the AgentConnection
interface using SSL sockets.
Constructor Summary | |
---|---|
SSLAgentConnection(java.lang.String host,
int port)
|
Method Summary | |
---|---|
void |
connect()
Make a connection. |
void |
disconnect()
terminate the connection. |
java.lang.String |
getHost()
|
java.io.InputStream |
getInputStream()
Get an input stream for this connection |
java.io.OutputStream |
getOutputStream()
Get an output stream for this connection |
int |
getPort()
|
boolean |
isConnected()
Check if a connection is open. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SSLAgentConnection(java.lang.String host, int port)
Method Detail |
---|
public java.lang.String getHost()
public int getPort()
public void connect() throws TransportException
AgentConnection
connect
in interface AgentConnection
TransportException
- if the connection could not be madepublic void disconnect() throws TransportException
AgentConnection
disconnect
in interface AgentConnection
TransportException
- if something went wrong...public java.io.InputStream getInputStream() throws TransportException
AgentConnection
getInputStream
in interface AgentConnection
TransportException
- if an inputstream could not be obtained for some reason.public java.io.OutputStream getOutputStream() throws TransportException
AgentConnection
getOutputStream
in interface AgentConnection
TransportException
- if an output stream could not be obtained for some reason.public boolean isConnected()
AgentConnection
isConnected
in interface AgentConnection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |