org.jboss.resteasy.core
Class ResourceMethodCacheControlInterceptor

java.lang.Object
  extended by org.jboss.resteasy.core.ResourceMethodCacheControlInterceptor
All Implemented Interfaces:
ResourceMethodInterceptor

public class ResourceMethodCacheControlInterceptor
extends java.lang.Object
implements ResourceMethodInterceptor

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  CacheControl cacheControl
           
 
Constructor Summary
ResourceMethodCacheControlInterceptor()
           
 
Method Summary
 boolean accepted(ResourceMethod resourceMethod)
          Whether or not this ResourceMethod should be intercepted.
protected  void initCacheControl(Cache methodCached)
           
 Response invoke(ResourceMethodContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cacheControl

protected CacheControl cacheControl
Constructor Detail

ResourceMethodCacheControlInterceptor

public ResourceMethodCacheControlInterceptor()
Method Detail

accepted

public boolean accepted(ResourceMethod resourceMethod)
Description copied from interface: ResourceMethodInterceptor
Whether or not this ResourceMethod should be intercepted. This is called at deployment time when setting up interceptor chains.

Specified by:
accepted in interface ResourceMethodInterceptor
Returns:

initCacheControl

protected void initCacheControl(Cache methodCached)

invoke

public Response invoke(ResourceMethodContext ctx)
                throws Failure,
                       ApplicationException,
                       WebApplicationException
Specified by:
invoke in interface ResourceMethodInterceptor
Throws:
Failure
ApplicationException
WebApplicationException


Copyright © 2009. All Rights Reserved.