org.broadleafcommerce.profile.web.core.security
Class CustomerStateInterceptor

java.lang.Object
  extended by org.broadleafcommerce.profile.web.core.security.CustomerStateInterceptor
All Implemented Interfaces:
org.springframework.web.context.request.WebRequestInterceptor

public class CustomerStateInterceptor
extends Object
implements org.springframework.web.context.request.WebRequestInterceptor

Interceptor responsible for putting the current customer on the current request. Note that this should always come after the PortletAuthenticationProcessingInterceptor in order for this to work properly as this assumes that the Spring Authentication object has already been set on Spring's SecurityContext (assuming that the user is authenticated to begin with).

Author:
Phillip Verheyden
See Also:
CustomerStateRequestProcessor}, CustomerState}

Field Summary
protected  CustomerStateRequestProcessor customerStateProcessor
           
 
Constructor Summary
CustomerStateInterceptor()
           
 
Method Summary
 void afterCompletion(org.springframework.web.context.request.WebRequest request, Exception ex)
           
 void postHandle(org.springframework.web.context.request.WebRequest request, org.springframework.ui.ModelMap model)
           
 void preHandle(org.springframework.web.context.request.WebRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

customerStateProcessor

protected CustomerStateRequestProcessor customerStateProcessor
Constructor Detail

CustomerStateInterceptor

public CustomerStateInterceptor()
Method Detail

preHandle

public void preHandle(org.springframework.web.context.request.WebRequest request)
               throws Exception
Specified by:
preHandle in interface org.springframework.web.context.request.WebRequestInterceptor
Throws:
Exception

postHandle

public void postHandle(org.springframework.web.context.request.WebRequest request,
                       org.springframework.ui.ModelMap model)
                throws Exception
Specified by:
postHandle in interface org.springframework.web.context.request.WebRequestInterceptor
Throws:
Exception

afterCompletion

public void afterCompletion(org.springframework.web.context.request.WebRequest request,
                            Exception ex)
                     throws Exception
Specified by:
afterCompletion in interface org.springframework.web.context.request.WebRequestInterceptor
Throws:
Exception


Copyright © 2013. All Rights Reserved.