public class CollettaProxyHandler extends ProxyHandler
_allowedConnectPorts, _DontProxyHeaders, _ProxyAuthHeaders, _proxyHostsBlackList, _proxyHostsWhiteList, _ProxySchemes, _tunnelTimeoutMs
Constructor and Description |
---|
CollettaProxyHandler() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isForbidden(String scheme,
String host,
int port,
boolean openNonPrivPorts)
Is scheme,host & port Forbidden.
|
protected boolean |
isForbidden(URI uri)
Is URL Forbidden.
|
protected URL |
isProxied(URI uri)
Is URL Proxied.
|
customizeConnection, customizeConnection, getProxyHostsBlackList, getProxyHostsWhiteList, getTunnelTimeoutMs, handle, handleConnect, isAnonymous, newHttpTunnel, sendForbid, setAnonymous, setProxyHostsBlackList, setProxyHostsWhiteList, setTunnelTimeoutMs, start
getHttpContext, getName, handleTrace, initialize, isStarted, setName, stop, toString
protected URL isProxied(URI uri) throws MalformedURLException
isProxied
in class ProxyHandler
uri
- The requested URI, which should include a scheme, host and port.MalformedURLException
protected boolean isForbidden(URI uri)
isForbidden
in class ProxyHandler
protected boolean isForbidden(String scheme, String host, int port, boolean openNonPrivPorts)
isForbidden
in class ProxyHandler
scheme
- A scheme that mast be in the proxySchemes StringMap.host
- A host that must pass the white and black listsport
- A port that must in the allowedConnectPorts SetopenNonPrivPorts
- If true ports greater than 1024 are allowed.Copyright © 2013. All Rights Reserved.