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, wait
clientDisconnect, isPortActive, startDuplex
public abstract int getId()
getId
in interface SocketLink
public final ReadStream getReadStream()
getReadStream
in interface SocketLink
public final WriteStream getWriteStream()
getWriteStream
in interface SocketLink
public boolean isSecure()
isSecure
in interface SocketLink
public java.lang.String getVirtualHost()
getVirtualHost
in interface SocketLink
public abstract java.net.InetAddress getLocalAddress()
getLocalAddress
in interface SocketLink
public java.lang.String getLocalHost()
getLocalHost
in interface SocketLink
public abstract int getLocalPort()
getLocalPort
in interface SocketLink
public abstract java.net.InetAddress getRemoteAddress()
getRemoteAddress
in interface SocketLink
public java.lang.String getRemoteHost()
getRemoteHost
in interface SocketLink
public int getRemoteAddress(byte[] buffer, int offset, int length)
getRemoteAddress
in interface SocketLink
public abstract int getRemotePort()
getRemotePort
in interface SocketLink
public java.lang.String getCipherSuite()
getCipherSuite
in interface SocketLink
public int getKeySize()
getKeySize
in interface SocketLink
public java.security.cert.X509Certificate[] getClientCertificates() throws java.security.cert.CertificateException
getClientCertificates
in interface SocketLink
java.security.cert.CertificateException
public boolean isKeepaliveAllocated()
isKeepaliveAllocated
in interface SocketLink
public void killKeepalive(java.lang.String reason)
killKeepalive
in interface SocketLink
public void requestShutdownBegin()
requestShutdownBegin
in interface SocketLink
public void requestShutdownEnd()
requestShutdownEnd
in interface SocketLink
public com.caucho.network.listen.SocketLinkState getState()
public boolean isCometActive()
isCometActive
in interface SocketLink
public boolean isCometSuspend()
isCometSuspend
in interface SocketLink
public boolean isDuplex()
isDuplex
in interface SocketLink
public AsyncController toComet(SocketLinkCometListener cometHandler)
toComet
in interface SocketLink
public AsyncController toCometRestart(SocketLinkCometListener cometHandler)
toCometRestart
in interface SocketLink