public abstract class AbstractSocketLink extends java.lang.Object implements SocketLink
TcpConnection is the most common implementation. The test harness provides a string based Connection.
| Constructor and Description |
|---|
AbstractSocketLink() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCipherSuite()
Returns the cipher suite
|
java.security.cert.X509Certificate[] |
getClientCertificates()
Returns any client certificates.
|
abstract int |
getId()
Returns the connection id.
|
int |
getKeySize()
Returns the key size.
|
abstract java.net.InetAddress |
getLocalAddress()
Returns the local address of the connection
|
java.lang.String |
getLocalHost()
Returns the remote client's inet address.
|
abstract int |
getLocalPort()
Returns the local port of the connection
|
ReadStream |
getReadStream()
Returns the connection's buffered read stream.
|
abstract 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.
|
abstract int |
getRemotePort()
Returns the remove port of the connection
|
com.caucho.network.listen.SocketLinkState |
getState() |
java.lang.String |
getVirtualHost()
Returns the static 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 |
isSecure()
Returns true if secure (ssl)
|
void |
killKeepalive(java.lang.String reason) |
void |
requestShutdownBegin() |
void |
requestShutdownEnd() |
AsyncController |
toComet(SocketLinkCometListener cometHandler)
Starts a comet request
|
AsyncController |
toCometRestart(SocketLinkCometListener cometHandler)
Starts a comet request
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclientDisconnect, isPortActive, startDuplexpublic abstract int getId()
getId in interface SocketLinkpublic final ReadStream getReadStream()
getReadStream in interface SocketLinkpublic final WriteStream getWriteStream()
getWriteStream in interface SocketLinkpublic boolean isSecure()
isSecure in interface SocketLinkpublic java.lang.String getVirtualHost()
getVirtualHost in interface SocketLinkpublic abstract java.net.InetAddress getLocalAddress()
getLocalAddress in interface SocketLinkpublic java.lang.String getLocalHost()
getLocalHost in interface SocketLinkpublic abstract int getLocalPort()
getLocalPort in interface SocketLinkpublic abstract java.net.InetAddress getRemoteAddress()
getRemoteAddress in interface SocketLinkpublic java.lang.String getRemoteHost()
getRemoteHost in interface SocketLinkpublic int getRemoteAddress(byte[] buffer,
int offset,
int length)
getRemoteAddress in interface SocketLinkpublic abstract int getRemotePort()
getRemotePort in interface SocketLinkpublic java.lang.String getCipherSuite()
getCipherSuite in interface SocketLinkpublic int getKeySize()
getKeySize in interface SocketLinkpublic java.security.cert.X509Certificate[] getClientCertificates()
throws java.security.cert.CertificateException
getClientCertificates in interface SocketLinkjava.security.cert.CertificateExceptionpublic boolean isKeepaliveAllocated()
isKeepaliveAllocated in interface SocketLinkpublic void killKeepalive(java.lang.String reason)
killKeepalive in interface SocketLinkpublic void requestShutdownBegin()
requestShutdownBegin in interface SocketLinkpublic void requestShutdownEnd()
requestShutdownEnd in interface SocketLinkpublic com.caucho.network.listen.SocketLinkState getState()
public boolean isCometActive()
isCometActive in interface SocketLinkpublic boolean isCometSuspend()
isCometSuspend in interface SocketLinkpublic boolean isDuplex()
isDuplex in interface SocketLinkpublic AsyncController toComet(SocketLinkCometListener cometHandler)
toComet in interface SocketLinkpublic AsyncController toCometRestart(SocketLinkCometListener cometHandler)
toCometRestart in interface SocketLink