org.broadleafcommerce.cms.web
Class URLHandlerFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
org.broadleafcommerce.cms.web.URLHandlerFilter
- 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.web.context.ServletContextAware
@Component(value="blURLHandlerFilter")
public class URLHandlerFilter
- extends org.springframework.web.filter.OncePerRequestFilter
Responsible for setting up the site and locale used by Broadleaf Commerce components.
- Author:
- bpolster
| Fields inherited from class org.springframework.web.filter.OncePerRequestFilter |
ALREADY_FILTERED_SUFFIX |
| Fields inherited from class org.springframework.web.filter.GenericFilterBean |
logger |
|
Method Summary |
protected void |
doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
|
protected String |
fixRedirectUrl(String contextPath,
String url)
If the url does not include "//" then the system will ensure that the application context
is added to the start of the URL. |
| Methods inherited from class org.springframework.web.filter.OncePerRequestFilter |
doFilter, getAlreadyFilteredAttributeName, shouldNotFilter |
| Methods inherited from class org.springframework.web.filter.GenericFilterBean |
addRequiredProperty, afterPropertiesSet, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLHandlerFilter
public URLHandlerFilter()
doFilterInternal
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
throws javax.servlet.ServletException,
IOException
- Specified by:
doFilterInternal in class org.springframework.web.filter.OncePerRequestFilter
- Throws:
javax.servlet.ServletException
IOException
fixRedirectUrl
protected String fixRedirectUrl(String contextPath,
String url)
- If the url does not include "//" then the system will ensure that the application context
is added to the start of the URL.
- Parameters:
url -
- Returns:
Copyright © 2013. All Rights Reserved.