|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mortbay.http.handler.AbstractHttpHandler
org.mortbay.http.handler.ProxyHandler
Proxy request handler. A HTTP/1.1 Proxy. This implementation uses the JVMs URL implementation to make proxy requests.
The HttpTunnel mechanism is also used to implement the CONNECT method.
| Constructor Summary | |
ProxyHandler()
|
|
| Method Summary | |
java.lang.String[] |
getProxyHostsBlackList()
Get proxy host black list. |
java.lang.String[] |
getProxyHostsWhiteList()
Get proxy host white list. |
int |
getTunnelTimeoutMs()
|
void |
handle(java.lang.String pathInContext,
java.lang.String pathParams,
HttpRequest request,
HttpResponse response)
Handle a request. |
void |
handleConnect(java.lang.String pathInContext,
java.lang.String pathParams,
HttpRequest request,
HttpResponse response)
|
boolean |
isAnonymous()
|
void |
setAnonymous(boolean anonymous)
|
void |
setProxyHostsBlackList(java.lang.String[] hosts)
Set proxy host black list. |
void |
setProxyHostsWhiteList(java.lang.String[] hosts)
Set proxy host white list. |
void |
setTunnelTimeoutMs(int ms)
Tunnel timeout. |
void |
start()
Start the LifeCycle. |
| Methods inherited from class org.mortbay.http.handler.AbstractHttpHandler |
getHttpContext, getName, handleTrace, initialize, isStarted, setName, stop, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ProxyHandler()
| Method Detail |
public void start()
throws java.lang.Exception
LifeCycle
start in interface LifeCyclestart in class AbstractHttpHandlerjava.lang.Exceptionpublic java.lang.String[] getProxyHostsWhiteList()
public void setProxyHostsWhiteList(java.lang.String[] hosts)
hosts - Array of hostnames and IPs that are proxied, or null if all hosts are proxied.public java.lang.String[] getProxyHostsBlackList()
public void setProxyHostsBlackList(java.lang.String[] hosts)
hosts - Array of hostnames and IPs that are NOT proxied.public int getTunnelTimeoutMs()
public void setTunnelTimeoutMs(int ms)
public void handle(java.lang.String pathInContext,
java.lang.String pathParams,
HttpRequest request,
HttpResponse response)
throws HttpException,
java.io.IOException
HttpHandler
pathInContext - The context pathpathParams - Path parameters such as encoded Session IDrequest - The HttpRequest requestresponse - The HttpResponse response
HttpException
java.io.IOException
public void handleConnect(java.lang.String pathInContext,
java.lang.String pathParams,
HttpRequest request,
HttpResponse response)
throws HttpException,
java.io.IOException
HttpException
java.io.IOExceptionpublic boolean isAnonymous()
public void setAnonymous(boolean anonymous)
anonymous - The anonymous to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||