@Component(value="blRequestFilter")
public class BroadleafRequestFilter
extends org.springframework.web.filter.OncePerRequestFilter
| Modifier and Type | Field and Description |
|---|---|
static String |
REQUEST_DTO
Parameter/Attribute name for the current language
|
protected BroadleafRequestProcessor |
requestProcessor |
| Constructor and Description |
|---|
BroadleafRequestFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain) |
protected Set |
getIgnoreSuffixes()
Returns a set of suffixes that can be ignored by content processing.
|
protected boolean |
shouldProcessURL(javax.servlet.http.HttpServletRequest request,
String requestURI)
Determines if the passed in URL should be processed by the content management system.
|
doFilter, getAlreadyFilteredAttributeName, shouldNotFilterpublic static String REQUEST_DTO
protected BroadleafRequestProcessor requestProcessor
public void doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
throws IOException,
javax.servlet.ServletException
doFilterInternal in class org.springframework.web.filter.OncePerRequestFilterIOExceptionjavax.servlet.ServletExceptionprotected boolean shouldProcessURL(javax.servlet.http.HttpServletRequest request,
String requestURI)
getIgnoreSuffixes.
This check is called with the doFilterInternal method to short-circuit the content processing which can be expensive for requests that do not require it.requestURI - - the HttpServletRequest.getRequestURIHttpServletRequest should be processedprotected Set getIgnoreSuffixes()
Copyright © 2014. All Rights Reserved.