Package org.broadleafcommerce.common.web
Class BroadleafRequestInterceptor
java.lang.Object
org.broadleafcommerce.common.web.BroadleafRequestInterceptor
- All Implemented Interfaces:
org.springframework.web.context.request.WebRequestInterceptor
public class BroadleafRequestInterceptor
extends Object
implements org.springframework.web.context.request.WebRequestInterceptor
Interceptor responsible for setting up the BroadleafRequestContext for the life of the request. This interceptor
should be the very first one in the list, as other interceptors might also use BroadleafRequestContext
.
Note that in Servlet applications you should be using the BroadleafRequestFilter
.
- Author:
- Phillip Verheyden
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
Field Details
-
requestProcessor
-
-
Constructor Details
-
BroadleafRequestInterceptor
public BroadleafRequestInterceptor()
-
-
Method Details
-
preHandle
- Specified by:
preHandle
in 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:
postHandle
in 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:
afterCompletion
in interfaceorg.springframework.web.context.request.WebRequestInterceptor
- Throws:
Exception
-