public class ProxyHttpResponseEncoder
extends org.jboss.netty.handler.codec.http.HttpResponseEncoder
Constructor and Description |
---|
ProxyHttpResponseEncoder()
Creates a new HTTP response encoder that doesn't include responses in
the cache.
|
ProxyHttpResponseEncoder(boolean transparent)
Creates a new HTTP response encoder that intercepts the encoding to
include any relevant responses in the cache.
|
ProxyHttpResponseEncoder(ProxyCacheManager cacheManager)
Creates a new HTTP response encoder that intercepts the encoding to
include any relevant responses in the cache.
|
ProxyHttpResponseEncoder(ProxyCacheManager cacheManager,
boolean transparent)
Creates a new HTTP response encoder that intercepts the encoding to
include any relevant responses in the cache.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
encode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
Object msg) |
encodeInitialLine
public ProxyHttpResponseEncoder()
public ProxyHttpResponseEncoder(ProxyCacheManager cacheManager)
cacheManager
- The class that manages the cache.public ProxyHttpResponseEncoder(boolean transparent)
transparent
- Whether or not this should act as a transparent proxy.public ProxyHttpResponseEncoder(ProxyCacheManager cacheManager, boolean transparent)
cacheManager
- The class that manages the cache.transparent
- Whether or not this should act as a transparent proxy.Copyright © 2009–2013 LittleShoot. All rights reserved.