Class BroadleafAdminRequestFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
org.broadleafcommerce.common.web.filter.AbstractIgnorableOncePerRequestFilter
org.broadleafcommerce.openadmin.web.filter.AbstractBroadleafAdminRequestFilter
org.broadleafcommerce.openadmin.web.filter.BroadleafAdminRequestFilter
- All Implemented Interfaces:
jakarta.servlet.Filter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.EnvironmentAware,org.springframework.core.env.EnvironmentCapable,org.springframework.core.Ordered,org.springframework.web.context.ServletContextAware
@Component("blAdminRequestFilter")
public class BroadleafAdminRequestFilter
extends AbstractBroadleafAdminRequestFilter
Responsible for setting the necessary attributes on the BroadleafRequestContext
- Author:
- Andre Azzolini (apazzolini)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PersistenceThreadManagerprotected org.broadleafcommerce.common.web.BroadleafWebRequestProcessorprotected org.broadleafcommerce.common.security.service.StaleStateProtectionServiceprotected ClassNameRequestParamValidationServiceFields inherited from class org.springframework.web.filter.OncePerRequestFilter
ALREADY_FILTERED_SUFFIXFields inherited from class org.springframework.web.filter.GenericFilterBean
loggerFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFilterInternalUnlessIgnored(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain filterChain) voidforwardToConflictDestination(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Forward the user to the conflict error page.intgetOrder()protected booleanvalidateClassNameParams(jakarta.servlet.http.HttpServletRequest request) Methods inherited from class org.broadleafcommerce.openadmin.web.filter.AbstractBroadleafAdminRequestFilter
getIgnoreSuffixes, shouldProcessURLMethods inherited from class org.broadleafcommerce.common.web.filter.AbstractIgnorableOncePerRequestFilter
doFilterInternal, isIgnoredMethods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatchMethods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
-
Field Details
-
requestProcessor
@Autowired @Qualifier("blAdminRequestProcessor") protected org.broadleafcommerce.common.web.BroadleafWebRequestProcessor requestProcessor -
persistenceThreadManager
@Autowired @Qualifier("blPersistenceThreadManager") protected PersistenceThreadManager persistenceThreadManager -
validationService
@Autowired @Qualifier("blClassNameRequestParamValidationService") protected ClassNameRequestParamValidationService validationService -
staleStateProtectionService
@Autowired @Qualifier("blStaleStateProtectionService") protected org.broadleafcommerce.common.security.service.StaleStateProtectionService staleStateProtectionService
-
-
Constructor Details
-
BroadleafAdminRequestFilter
public BroadleafAdminRequestFilter()
-
-
Method Details
-
doFilterInternalUnlessIgnored
public void doFilterInternalUnlessIgnored(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain filterChain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilterInternalUnlessIgnoredin classorg.broadleafcommerce.common.web.filter.AbstractIgnorableOncePerRequestFilter- Throws:
IOExceptionjakarta.servlet.ServletException
-
validateClassNameParams
protected boolean validateClassNameParams(jakarta.servlet.http.HttpServletRequest request) -
forwardToConflictDestination
public void forwardToConflictDestination(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException Forward the user to the conflict error page.- Parameters:
request-response-- Throws:
jakarta.servlet.ServletExceptionIOException
-
getOrder
public int getOrder()
-