com.elasticpath.sfweb.ajax.interceptor
Class SessionTimeoutInterceptor
java.lang.Object
com.elasticpath.sfweb.ajax.interceptor.SessionTimeoutInterceptor
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
public class SessionTimeoutInterceptor
- extends java.lang.Object
- implements org.aopalliance.intercept.MethodInterceptor
SessionTimeoutInterceptor
checks to see if the customer's session has not timed out and if it has, reloads it from the database.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionTimeoutInterceptor
public SessionTimeoutInterceptor()
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
throws java.lang.Throwable
- Do stuff.
- Specified by:
invoke
in interface org.aopalliance.intercept.MethodInterceptor
- Parameters:
methodInvocation
- the method invocation to be intercepted and validated
- Returns:
- the return value of the intercepted method
- Throws:
java.lang.Throwable
- on error
setRequestHelper
public void setRequestHelper(RequestHelper requestHelper)
- Parameters:
requestHelper
- the requestHelper to set