|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mortbay.http.HttpTunnel
HTTP Tunnel. A HTTP Tunnel can be used to take over a HTTP connection in order to tunnel another protocol over it. The prime example is the CONNECT method handled by the ProxyHandler to setup a SSL tunnel between the client and the real server.
HttpConnection
Constructor Summary | |
HttpTunnel(java.net.Socket socket)
Deprecated. Use version with timeout |
|
HttpTunnel(java.net.Socket socket,
int timeoutMs)
Constructor. |
Method Summary | |
void |
handle(java.io.InputStream in,
java.io.OutputStream out)
handle method. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HttpTunnel(java.net.Socket socket)
socket
- The tunnel socket.public HttpTunnel(java.net.Socket socket, int timeoutMs) throws java.net.SocketException
socket
- The tunnel socket.timeoutMs
- The maximum time to wait for a read on the tunnel. Note that
sotimer exceptions are ignored by the tunnel as they may be set to a short period
for IE bug.Method Detail |
public void handle(java.io.InputStream in, java.io.OutputStream out)
in
- out
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |