Class AbstractUrlMatchingFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
de.hybris.platform.coreairlinecommonsocc.filter.AbstractUrlMatchingFilter
- 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
- Direct Known Subclasses:
AirlineCartMatchingFilter
public abstract class AbstractUrlMatchingFilter
extends org.springframework.web.filter.OncePerRequestFilter
Abstract matching filter that helps parsing urls.
-
Field Summary
Fields 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 MatchergetMatcher(javax.servlet.http.HttpServletRequest request, String regexp) Gets matcher.protected StringgetPath(javax.servlet.http.HttpServletRequest request) Gets path.protected StringGets value.protected StringGets value.protected booleanmatchesUrl(javax.servlet.http.HttpServletRequest request, String regexp) Matches url.Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, doFilterInternal, 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
-
Constructor Details
-
AbstractUrlMatchingFilter
public AbstractUrlMatchingFilter()
-
-
Method Details
-
matchesUrl
Matches url.- Parameters:
request- the requestregexp- the regexp- Returns:
- the boolean
-
getValue
Gets value.- Parameters:
request- the requestregexp- the regexp- Returns:
- the value
-
getValue
protected String getValue(javax.servlet.http.HttpServletRequest request, String regexp, String groupName) Gets value.- Parameters:
request- the requestregexp- the regexpgroupName- the group name- Returns:
- the value
-
getMatcher
Gets matcher.- Parameters:
request- the requestregexp- the regexp- Returns:
- the matcher
-
getPath
Gets path.- Parameters:
request- the request- Returns:
- the path
-