|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.connection.Connection
public abstract class Connection
Represents a protocol-independent connection. Prococol 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 | |
|---|---|
Connection()
|
|
| Method Summary | |
|---|---|
void |
closeController(ConnectionCometController controller)
Close the controller |
abstract int |
getId()
Returns the connection id. |
abstract java.net.InetAddress |
getLocalAddress()
Returns the local address of the connection |
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 |
java.lang.String |
getVirtualHost()
Returns the static virtual host |
WriteStream |
getWriteStream()
Returns the connection's buffered write stream. |
boolean |
isComet()
Returns true for a comet connection |
boolean |
isDuplex()
Returns true for a duplex connection |
boolean |
isSecure()
Returns true if secure (ssl) |
boolean |
isSuspend()
Returns true for a comet connection |
void |
sendBroadcast(BroadcastTask task)
Sends a broadcast request. |
ConnectionCometController |
toComet(boolean isTop,
ServletRequest request,
ServletResponse response)
Starts a comet request |
protected boolean |
wake()
Wakes the connection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Connection()
| Method Detail |
|---|
public abstract int getId()
public final ReadStream getReadStream()
public final WriteStream getWriteStream()
public boolean isSecure()
public java.lang.String getVirtualHost()
public abstract java.net.InetAddress getLocalAddress()
public abstract int getLocalPort()
public abstract java.net.InetAddress getRemoteAddress()
public java.lang.String getRemoteHost()
public int getRemoteAddress(byte[] buffer,
int offset,
int length)
public abstract int getRemotePort()
public void sendBroadcast(BroadcastTask task)
public boolean isComet()
public boolean isSuspend()
public boolean isDuplex()
public ConnectionCometController toComet(boolean isTop,
ServletRequest request,
ServletResponse response)
public void closeController(ConnectionCometController controller)
protected boolean wake()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||