|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.littleshoot.proxy.DefaultProxyCacheManager
public class DefaultProxyCacheManager
Default cache manager for the proxy.
| Constructor Summary | |
|---|---|
DefaultProxyCacheManager()
Creates a new cache manager. |
|
| Method Summary | |
|---|---|
Future<String> |
cache(org.jboss.netty.handler.codec.http.HttpRequest httpRequest,
org.jboss.netty.handler.codec.http.HttpResponse httpResponse,
Object response,
org.jboss.netty.buffer.ChannelBuffer encoded)
Caches the request and response object, if appropriate. |
boolean |
returnCacheHit(org.jboss.netty.handler.codec.http.HttpRequest httpRequest,
org.jboss.netty.channel.Channel channel)
Writes a cached response back to the browser if we have a hit in the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultProxyCacheManager()
| Method Detail |
|---|
public boolean returnCacheHit(org.jboss.netty.handler.codec.http.HttpRequest httpRequest,
org.jboss.netty.channel.Channel channel)
ProxyCacheManager
returnCacheHit in interface ProxyCacheManagerhttpRequest - The HTTP request.channel - The channel the request came in on.
true if there was a hit in the cache and we
returned a response, otherwise false.
public Future<String> cache(org.jboss.netty.handler.codec.http.HttpRequest httpRequest,
org.jboss.netty.handler.codec.http.HttpResponse httpResponse,
Object response,
org.jboss.netty.buffer.ChannelBuffer encoded)
ProxyCacheManager
cache in interface ProxyCacheManagerhttpRequest - The original HTTP request.httpResponse - The HTTP response.response - The response object. Can be an HttpResponse or an
HttpChunk.encoded - The encoded response to cache.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||