@Intercepts(value=ResolutionExecution) public class HttpCacheInterceptor extends 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(Method method,
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 Exception
Interceptorintercept in interface Interceptorctx - the ExecutionContext of the request currently being processedException - if any non-recoverable errors occurprotected HttpCache getAnnotation(Method method, 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.