org.jboss.resteasy.plugins.cache.server
Class ServerCacheHitInterceptor

java.lang.Object
  extended by org.jboss.resteasy.plugins.cache.server.ServerCacheHitInterceptor
All Implemented Interfaces:
PreProcessInterceptor

public class ServerCacheHitInterceptor
extends java.lang.Object
implements PreProcessInterceptor

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  ServerCache cache
           
static java.lang.String DO_NOT_CACHE_RESPONSE
           
protected  Request validation
           
 
Constructor Summary
ServerCacheHitInterceptor(ServerCache cache)
           
 
Method Summary
 ServerResponse preProcess(HttpRequest request, ResourceMethod method)
          Preprocess resource method invocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

protected ServerCache cache

DO_NOT_CACHE_RESPONSE

public static final java.lang.String DO_NOT_CACHE_RESPONSE
See Also:
Constant Field Values

validation

@Context
protected Request validation
Constructor Detail

ServerCacheHitInterceptor

public ServerCacheHitInterceptor(ServerCache cache)
Method Detail

preProcess

public ServerResponse preProcess(HttpRequest request,
                                 ResourceMethod method)
                          throws Failure,
                                 WebApplicationException
Description copied from interface: PreProcessInterceptor
Preprocess resource method invocation

Specified by:
preProcess in interface PreProcessInterceptor
Returns:
null unless the interceptor is returning its own response
Throws:
Failure
WebApplicationException


Copyright © 2010. All Rights Reserved.