|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.network.listen.AbstractSocketLink
com.caucho.network.listen.StreamSocketLink
public class StreamSocketLink
A Connection based on streams. Stream connection is primarily used for testing.
| Constructor Summary | |
|---|---|
StreamSocketLink()
|
|
StreamSocketLink(java.io.InputStream is,
java.io.OutputStream os)
|
|
| Method Summary | |
|---|---|
void |
clientDisconnect()
|
int |
getId()
Returns the connection id. |
java.net.InetAddress |
getLocalAddress()
Returns the local address of the connection |
int |
getLocalPort()
Returns the local port of the connection |
java.net.InetAddress |
getRemoteAddress()
Returns the remote address of the connection |
int |
getRemotePort()
Returns the remove port of the connection |
java.lang.String |
getVirtualHost()
Returns the static virtual host |
boolean |
isKeepaliveAllocated()
|
boolean |
isPortActive()
|
boolean |
isSecure()
Returns true if secure (ssl) |
void |
killKeepalive(java.lang.String reason)
|
void |
onRequestComplete()
|
void |
setLocalAddress(java.net.InetAddress addr)
|
void |
setLocalPort(int port)
|
void |
setRemoteAddress(java.net.InetAddress addr)
|
void |
setRemotePort(int port)
|
void |
setSecure(boolean isSecure)
|
void |
setStream(java.io.InputStream is,
java.io.OutputStream os)
|
void |
setVirtualHost(java.lang.String virtualHost)
|
SocketLinkDuplexController |
startDuplex(SocketLinkDuplexListener handler)
Starts a full duplex (tcp style) request for hmtp/xmpp |
AsyncController |
toComet(SocketLinkCometListener handler)
Starts a comet request |
| Methods inherited from class com.caucho.network.listen.AbstractSocketLink |
|---|
getCipherSuite, getClientCertificates, getKeySize, getLocalHost, getReadStream, getRemoteAddress, getRemoteHost, getState, getWriteStream, isCometActive, isCometSuspend, isDuplex, requestShutdownBegin, requestShutdownEnd |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamSocketLink()
public StreamSocketLink(java.io.InputStream is,
java.io.OutputStream os)
| Method Detail |
|---|
public int getId()
AbstractSocketLink
getId in interface SocketLinkgetId in class AbstractSocketLinkpublic java.net.InetAddress getLocalAddress()
AbstractSocketLink
getLocalAddress in interface SocketLinkgetLocalAddress in class AbstractSocketLinkpublic int getLocalPort()
AbstractSocketLink
getLocalPort in interface SocketLinkgetLocalPort in class AbstractSocketLinkpublic boolean isPortActive()
public java.net.InetAddress getRemoteAddress()
AbstractSocketLink
getRemoteAddress in interface SocketLinkgetRemoteAddress in class AbstractSocketLinkpublic int getRemotePort()
AbstractSocketLink
getRemotePort in interface SocketLinkgetRemotePort in class AbstractSocketLinkpublic void setRemotePort(int port)
public java.lang.String getVirtualHost()
AbstractSocketLink
getVirtualHost in interface SocketLinkgetVirtualHost in class AbstractSocketLinkpublic void setVirtualHost(java.lang.String virtualHost)
public void setStream(java.io.InputStream is,
java.io.OutputStream os)
public void setSecure(boolean isSecure)
public boolean isSecure()
AbstractSocketLink
isSecure in interface SocketLinkisSecure in class AbstractSocketLinkpublic boolean isKeepaliveAllocated()
isKeepaliveAllocated in interface SocketLinkisKeepaliveAllocated in class AbstractSocketLinkpublic void killKeepalive(java.lang.String reason)
killKeepalive in interface SocketLinkkillKeepalive in class AbstractSocketLinkpublic void clientDisconnect()
public void setLocalAddress(java.net.InetAddress addr)
public void setLocalPort(int port)
public void setRemoteAddress(java.net.InetAddress addr)
public AsyncController toComet(SocketLinkCometListener handler)
AbstractSocketLink
toComet in interface SocketLinktoComet in class AbstractSocketLinkpublic void onRequestComplete()
public SocketLinkDuplexController startDuplex(SocketLinkDuplexListener handler)
SocketLink
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||