public interface SocketLink
TcpConnection is the most common implementation. The test harness provides a string based Connection.
| Modifier and Type | Method and Description |
|---|---|
void |
clientDisconnect() |
java.lang.String |
getCipherSuite()
Returns the cipher suite
|
java.security.cert.X509Certificate[] |
getClientCertificates()
Returns any client certificates.
|
int |
getId()
Returns the connection id.
|
int |
getKeySize()
Returns the key size.
|
java.net.InetAddress |
getLocalAddress()
Returns the local address of the connection
|
java.lang.String |
getLocalHost()
Returns the local host of the connection
|
int |
getLocalPort()
Returns the local port of the connection
|
ReadStream |
getReadStream()
Returns the connection's buffered read stream.
|
java.net.InetAddress |
getRemoteAddress()
Returns the remote address of the connection
|
int |
getRemoteAddress(byte[] buffer,
int offset,
int length)
Returns the remote address of the connection
|
java.lang.String |
getRemoteHost()
Returns the remote client's inet address.
|
int |
getRemotePort()
Returns the remove port of the connection
|
java.lang.String |
getVirtualHost()
Returns the static configured virtual host
|
WriteStream |
getWriteStream()
Returns the connection's buffered write stream.
|
boolean |
isCometActive()
Returns true for a comet connection
|
boolean |
isCometSuspend()
Returns true for a comet connection
|
boolean |
isDuplex()
Returns true for a duplex connection
|
boolean |
isKeepaliveAllocated() |
boolean |
isPortActive() |
boolean |
isSecure()
Returns true if secure (ssl)
|
void |
killKeepalive(java.lang.String reason) |
void |
requestShutdownBegin() |
void |
requestShutdownEnd() |
SocketLinkDuplexController |
startDuplex(SocketLinkDuplexListener handler)
Starts a full duplex (tcp style) request for hmtp/xmpp
|
AsyncController |
toComet(SocketLinkCometListener cometHandler)
Starts a comet request
|
AsyncController |
toCometRestart(SocketLinkCometListener cometHandler) |
int getId()
ReadStream getReadStream()
WriteStream getWriteStream()
boolean isSecure()
java.lang.String getVirtualHost()
java.net.InetAddress getLocalAddress()
java.lang.String getLocalHost()
int getLocalPort()
java.net.InetAddress getRemoteAddress()
java.lang.String getRemoteHost()
int getRemoteAddress(byte[] buffer,
int offset,
int length)
int getRemotePort()
java.lang.String getCipherSuite()
int getKeySize()
java.security.cert.X509Certificate[] getClientCertificates()
throws java.security.cert.CertificateException
java.security.cert.CertificateExceptionboolean isPortActive()
boolean isKeepaliveAllocated()
void killKeepalive(java.lang.String reason)
void requestShutdownBegin()
void requestShutdownEnd()
AsyncController toComet(SocketLinkCometListener cometHandler)
AsyncController toCometRestart(SocketLinkCometListener cometHandler)
boolean isCometActive()
boolean isCometSuspend()
boolean isDuplex()
SocketLinkDuplexController startDuplex(SocketLinkDuplexListener handler)
void clientDisconnect()