|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.connection.Connection
com.caucho.server.connection.StreamConnection
public class StreamConnection
A Connection based on streams. Stream connection is primarily used for testing.
| Field Summary |
|---|
| Fields inherited from class com.caucho.server.connection.Connection |
|---|
_controller |
| Constructor Summary | |
|---|---|
StreamConnection()
|
|
StreamConnection(java.io.InputStream is,
java.io.OutputStream os)
|
|
| Method Summary | |
|---|---|
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 |
isSecure()
Returns true if secure (ssl) |
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)
|
| Methods inherited from class com.caucho.server.connection.Connection |
|---|
closeControllerImpl, getController, getReadStream, getRemoteAddress, getRemoteHost, getWriteStream, sendBroadcast, setController, wake |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamConnection()
public StreamConnection(java.io.InputStream is,
java.io.OutputStream os)
| Method Detail |
|---|
public int getId()
Connection
getId in class Connectionpublic java.net.InetAddress getLocalAddress()
Connection
getLocalAddress in class Connectionpublic int getLocalPort()
Connection
getLocalPort in class Connectionpublic java.net.InetAddress getRemoteAddress()
Connection
getRemoteAddress in class Connectionpublic int getRemotePort()
Connection
getRemotePort in class Connectionpublic void setRemotePort(int port)
public java.lang.String getVirtualHost()
Connection
getVirtualHost in class Connectionpublic 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()
Connection
isSecure in class Connectionpublic void setLocalAddress(java.net.InetAddress addr)
public void setLocalPort(int port)
public void setRemoteAddress(java.net.InetAddress addr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||