org.mortbay.http.handler
public class CollettaProxyHandler extends ProxyHandler
Method Summary | |
---|---|
protected boolean | isForbidden(URI uri)
Is URL Forbidden.
|
protected boolean | isForbidden(String scheme, String host, int port, boolean openNonPrivPorts)
Is scheme,host & port Forbidden.
|
protected URL | isProxied(URI uri)
Is URL Proxied. |
Returns: True if the URL is not forbidden. Calls isForbidden(scheme,host,port,true);
Parameters: scheme A scheme that mast be in the proxySchemes StringMap. host A host that must pass the white and black lists port A port that must in the allowedConnectPorts Set openNonPrivPorts If true ports greater than 1024 are allowed.
Returns: True if the request to the scheme,host and port is not forbidden.
Parameters: uri The requested URI, which should include a scheme, host and port.
Returns: The URL to proxy to, or null if the passed URI should not be proxied. The default implementation returns the passed uri if isForbidden() returns true.