|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openqa.jetty.http.HttpTunnel
public class 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 | |
|---|---|
protected |
HttpTunnel()
Constructor. |
|
HttpTunnel(java.net.Socket socket,
java.io.InputStream in,
java.io.OutputStream out)
Constructor. |
| Method Summary | |
|---|---|
static int |
copyBytes(java.io.InputStream in,
java.io.OutputStream out,
long byteCount)
Copy Stream in to Stream for byteCount bytes or until EOF or exception. |
java.net.Socket |
getSocket()
|
int |
getTimeoutMs()
|
void |
handle(java.io.InputStream in,
java.io.OutputStream out)
handle method. |
void |
setTimeoutMs(int timeoutMs)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected HttpTunnel()
public HttpTunnel(java.net.Socket socket,
java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
socket - The tunnel socket.in - Alternative input stream or null if using normal socket streamout - Alternative output stream or null if using normal socket stream
java.io.IOException| Method Detail |
|---|
public void handle(java.io.InputStream in,
java.io.OutputStream out)
in - out -
public static int copyBytes(java.io.InputStream in,
java.io.OutputStream out,
long byteCount)
throws java.io.IOException
java.io.IOExceptionpublic java.net.Socket getSocket()
public int getTimeoutMs()
public void setTimeoutMs(int timeoutMs)
timeoutMs - The timeoutMs to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||