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.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
encode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
Object msg) |
encodeInitialLinepublic 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–2015 LittleShoot. All rights reserved.