public class ProxyHttpRequestEncoder
extends org.jboss.netty.handler.codec.http.HttpRequestEncoder
Constructor and Description |
---|
ProxyHttpRequestEncoder(HttpRelayingHandler handler)
Creates a new request encoder.
|
ProxyHttpRequestEncoder(HttpRelayingHandler handler,
HttpRequestFilter requestFilter,
String chainProxyHostAndPort)
Creates a new request encoder.
|
ProxyHttpRequestEncoder(HttpRelayingHandler handler,
HttpRequestFilter requestFilter,
String chainProxyHostAndPort,
boolean transparent)
Creates a new request encoder.
|
public ProxyHttpRequestEncoder(HttpRelayingHandler handler)
handler
- The class that handles relaying all data along this
connection. We need this to synchronize caching rules for each request
and response pair.public ProxyHttpRequestEncoder(HttpRelayingHandler handler, HttpRequestFilter requestFilter, String chainProxyHostAndPort)
handler
- The class that handles relaying all data along this
connection. We need this to synchronize caching rules for each request
and response pair.chainProxyHostAndPort
- The configured proxy chain host and port.requestFilter
- The filter for requests.public ProxyHttpRequestEncoder(HttpRelayingHandler handler, HttpRequestFilter requestFilter, String chainProxyHostAndPort, boolean transparent)
handler
- The class that handles relaying all data along this
connection. We need this to synchronize caching rules for each request
and response pair.chainProxyHostAndPort
- The configured proxy chain host and port.requestFilter
- The filter for requests.transparent
- Whether or not this is an transparent proxy.
Transparent proxies don't add extra via headers or follow normal
proxy rules.Copyright © 2009-2012 LittleShoot. All Rights Reserved.