|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.network.listen.AbstractSocketLink
public abstract class AbstractSocketLink
Represents a protocol-independent connection. Protocol servers and their associated Requests use Connection to retrieve the read and write streams and to get information about the connection.
TcpConnection is the most common implementation. The test harness provides a string based Connection.
| Constructor Summary | |
|---|---|
AbstractSocketLink()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.caucho.network.listen.SocketLink |
|---|
clientDisconnect, isPortActive, startDuplex |
| Constructor Detail |
|---|
public AbstractSocketLink()
| Method Detail |
|---|
public 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 SocketLink
public 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 SocketLink
public 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 SocketLink
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||