|
||||||||||
| 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.
| Field Summary | |
|---|---|
protected ConnectionController |
_controller
|
| Constructor Summary | |
|---|---|
Connection()
|
|
| Method Summary | |
|---|---|
protected void |
closeControllerImpl()
|
ConnectionController |
getController()
Connection 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 |
isSecure()
Returns true if secure (ssl) |
void |
sendBroadcast(BroadcastTask task)
Sends a broadcast request. |
protected void |
setController(ConnectionController controller)
Connection controller. |
protected boolean |
wake()
Wake the controller. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ConnectionController _controller
| 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)
protected void setController(ConnectionController controller)
public ConnectionController getController()
protected boolean wake()
protected void closeControllerImpl()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||