Class CustomerStateInterceptor
java.lang.Object
org.broadleafcommerce.profile.web.site.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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterCompletion(org.springframework.web.context.request.WebRequest request, Exception ex) voidpostHandle(org.springframework.web.context.request.WebRequest request, org.springframework.ui.ModelMap model) voidpreHandle(org.springframework.web.context.request.WebRequest request)
-
Field Details
-
customerStateProcessor
-
-
Constructor Details
-
CustomerStateInterceptor
public CustomerStateInterceptor()
-
-
Method Details
-
preHandle
- Specified by:
preHandlein interfaceorg.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:
postHandlein interfaceorg.springframework.web.context.request.WebRequestInterceptor- Throws:
Exception
-
afterCompletion
public void afterCompletion(org.springframework.web.context.request.WebRequest request, Exception ex) throws Exception - Specified by:
afterCompletionin interfaceorg.springframework.web.context.request.WebRequestInterceptor- Throws:
Exception
-