public interface ProxyCacheManager
Modifier and Type | Method and Description |
---|---|
Future<String> |
cache(org.jboss.netty.handler.codec.http.HttpRequest originalRequest,
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 request,
org.jboss.netty.channel.Channel channel)
Writes a cached response back to the browser if we have a hit in the
cache.
|
boolean returnCacheHit(org.jboss.netty.handler.codec.http.HttpRequest request, org.jboss.netty.channel.Channel channel)
request
- 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
.Future<String> cache(org.jboss.netty.handler.codec.http.HttpRequest originalRequest, org.jboss.netty.handler.codec.http.HttpResponse httpResponse, Object response, org.jboss.netty.buffer.ChannelBuffer encoded)
originalRequest
- 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.Copyright © 2009-2013 LittleShoot. All Rights Reserved.