|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServerConnection
UAConnection is a stateful object with four possible states {Closed, Opening, Open, Closing}. A connection is transfers to open state after handshake (Hello/Acknowledge). Closed state is final.
| Nested Class Summary | |
|---|---|
static interface |
ServerConnection.SecureChannelListener
|
| Method Summary | |
|---|---|
void |
addConnectionListener(IConnectionListener listener)
Add response listener |
void |
addSecureChannelListener(ServerConnection.SecureChannelListener l)
addSecureChannelListener. |
SocketAddress |
getLocalAddress()
Get local socket address |
SocketAddress |
getRemoteAddress()
Get remote socket address |
void |
getSecureChannels(Collection<ServerSecureChannel> list)
Get all open and opening secure channels of this connection. |
void |
removeConnectionListener(IConnectionListener listener)
Add response listener |
void |
removeSecureChannelListener(ServerConnection.SecureChannelListener l)
removeSecureChannelListener. |
| Method Detail |
|---|
SocketAddress getLocalAddress()
SocketAddress getRemoteAddress()
void getSecureChannels(Collection<ServerSecureChannel> list)
list - list to be filledvoid addSecureChannelListener(ServerConnection.SecureChannelListener l)
addSecureChannelListener.
l - a ServerConnection.SecureChannelListener object.void removeSecureChannelListener(ServerConnection.SecureChannelListener l)
removeSecureChannelListener.
l - a ServerConnection.SecureChannelListener object.void addConnectionListener(IConnectionListener listener)
listener - a IConnectionListener object.void removeConnectionListener(IConnectionListener listener)
listener - a IConnectionListener object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||