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, toCometRestart
public StreamSocketLink()
public StreamSocketLink(java.io.InputStream is, java.io.OutputStream os)
public int getId()
AbstractSocketLink
getId
in interface SocketLink
getId
in class AbstractSocketLink
public java.net.InetAddress getLocalAddress()
AbstractSocketLink
getLocalAddress
in interface SocketLink
getLocalAddress
in class AbstractSocketLink
public int getLocalPort()
AbstractSocketLink
getLocalPort
in interface SocketLink
getLocalPort
in class AbstractSocketLink
public boolean isPortActive()
public java.net.InetAddress getRemoteAddress()
AbstractSocketLink
getRemoteAddress
in interface SocketLink
getRemoteAddress
in class AbstractSocketLink
public int getRemotePort()
AbstractSocketLink
getRemotePort
in interface SocketLink
getRemotePort
in class AbstractSocketLink
public void setRemotePort(int port)
public java.lang.String getVirtualHost()
AbstractSocketLink
getVirtualHost
in interface SocketLink
getVirtualHost
in class AbstractSocketLink
public 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 SocketLink
isSecure
in class AbstractSocketLink
public boolean isKeepaliveAllocated()
isKeepaliveAllocated
in interface SocketLink
isKeepaliveAllocated
in class AbstractSocketLink
public void killKeepalive(java.lang.String reason)
killKeepalive
in interface SocketLink
killKeepalive
in class AbstractSocketLink
public 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 SocketLink
toComet
in class AbstractSocketLink
public void onRequestComplete()
public SocketLinkDuplexController startDuplex(SocketLinkDuplexListener handler)
SocketLink