Class PunchOutRequestMatchingFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
de.hybris.platform.b2bpunchoutocc.filter.PunchOutRequestMatchingFilter
- All Implemented Interfaces:
javax.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.web.context.ServletContextAware
public class PunchOutRequestMatchingFilter
extends org.springframework.web.filter.OncePerRequestFilter
Filter to allow to access only PunchOut related OCC API's
-
Field Summary
FieldsFields inherited from class org.springframework.web.filter.OncePerRequestFilter
ALREADY_FILTERED_SUFFIXFields inherited from class org.springframework.web.filter.GenericFilterBean
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancontainsRole(org.springframework.security.core.Authentication auth, String role) protected voiddoFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) protected booleanexcludesFromAllowList(javax.servlet.http.HttpServletRequest request) protected booleanmatchAllowedList(String requestUrl, String requestMethod, Map<String, Object> allowedUrlMap, String punchOutSid) protected StringprocessPathInfo(String pathInfo) Methods 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
-
PUNCHOUT_OAUTH_ROLE
- See Also:
-
PUNCHOUT_HEADER_SID
- See Also:
-
-
Constructor Details
-
PunchOutRequestMatchingFilter
public PunchOutRequestMatchingFilter()
-
-
Method Details
-
doFilterInternal
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) throws javax.servlet.ServletException, IOException - Specified by:
doFilterInternalin classorg.springframework.web.filter.OncePerRequestFilter- Throws:
javax.servlet.ServletExceptionIOException
-
excludesFromAllowList
protected boolean excludesFromAllowList(javax.servlet.http.HttpServletRequest request) -
processPathInfo
-
containsRole
-
matchAllowedList
-