public class StreamSocketLink extends AbstractSocketLink
| Constructor and Description |
|---|
StreamSocketLink() |
StreamSocketLink(java.io.InputStream is,
java.io.OutputStream os) |
| Modifier and Type | Method and Description |
|---|---|
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
|
getCipherSuite, getClientCertificates, getKeySize, getLocalHost, getReadStream, getRemoteAddress, getRemoteHost, getState, getWriteStream, isCometActive, isCometSuspend, isDuplex, requestShutdownBegin, requestShutdownEnd, toCometRestartpublic StreamSocketLink()
public StreamSocketLink(java.io.InputStream is,
java.io.OutputStream os)
public int getId()
AbstractSocketLinkgetId in interface SocketLinkgetId in class AbstractSocketLinkpublic java.net.InetAddress getLocalAddress()
AbstractSocketLinkgetLocalAddress in interface SocketLinkgetLocalAddress in class AbstractSocketLinkpublic int getLocalPort()
AbstractSocketLinkgetLocalPort in interface SocketLinkgetLocalPort in class AbstractSocketLinkpublic boolean isPortActive()
public java.net.InetAddress getRemoteAddress()
AbstractSocketLinkgetRemoteAddress in interface SocketLinkgetRemoteAddress in class AbstractSocketLinkpublic int getRemotePort()
AbstractSocketLinkgetRemotePort in interface SocketLinkgetRemotePort in class AbstractSocketLinkpublic void setRemotePort(int port)
public java.lang.String getVirtualHost()
AbstractSocketLinkgetVirtualHost 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()
AbstractSocketLinkisSecure 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)
AbstractSocketLinktoComet in interface SocketLinktoComet in class AbstractSocketLinkpublic void onRequestComplete()
public SocketLinkDuplexController startDuplex(SocketLinkDuplexListener handler)
SocketLink