@Intercepts(value=ResolutionExecution) public class HttpCacheInterceptor extends java.lang.Object implements Interceptor
HttpCache
annotation on the event handler method, the ActionBean
class or the ActionBean
's superclasses. If an HttpCache
is found, then the
appropriate response headers are set to control client-side caching.Constructor and Description |
---|
HttpCacheInterceptor() |
Modifier and Type | Method and Description |
---|---|
protected HttpCache |
getAnnotation(java.lang.reflect.Method method,
java.lang.Class<? extends ActionBean> beanClass)
Look for a
HttpCache annotation on the method first and then on the class and its
superclasses. |
Resolution |
intercept(ExecutionContext ctx)
Invoked when intercepting the flow of execution.
|
public Resolution intercept(ExecutionContext ctx) throws java.lang.Exception
Interceptor
intercept
in interface Interceptor
ctx
- the ExecutionContext of the request currently being processedjava.lang.Exception
- if any non-recoverable errors occurprotected HttpCache getAnnotation(java.lang.reflect.Method method, java.lang.Class<? extends ActionBean> beanClass)
HttpCache
annotation on the method first and then on the class and its
superclasses.method
- an event handler methodbeanClass
- the class to inspect for annotations if none is found on the methodHttpCache
annotation found. If none is found then null.? Copyright 2005-2006, Stripes Development Team.