| java.lang.Object org.springframework.web.filter.GenericFilterBean org.springframework.web.filter.OncePerRequestFilter
All known Subclasses: org.springframework.orm.hibernate3.support.OpenSessionInViewFilter, org.springframework.orm.jdo.support.OpenPersistenceManagerInViewFilter, org.springframework.web.multipart.support.MultipartFilter, org.springframework.orm.hibernate.support.OpenSessionInViewFilter, org.springframework.web.filter.RequestContextFilter, org.springframework.web.filter.AbstractRequestLoggingFilter, org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter, org.springframework.web.filter.CharacterEncodingFilter,
OncePerRequestFilter | abstract public class OncePerRequestFilter extends GenericFilterBean (Code) | | Filter base class that guarantees to be just executed once per request,
on any servlet container. It provides a
OncePerRequestFilter.doFilterInternal method with HttpServletRequest and HttpServletResponse arguments.
The
OncePerRequestFilter.getAlreadyFilteredAttributeName method determines how
to identify that a request is already filtered. The default implementation
is based on the configured name of the concrete filter instance.
author: Juergen Hoeller since: 06.12.2003 |
Field Summary | |
final public static String | ALREADY_FILTERED_SUFFIX Suffix that gets appended to the filter name for the
"already filtered" request attribute. |
getAlreadyFilteredAttributeName | protected String getAlreadyFilteredAttributeName()(Code) | | Return the name of the request attribute that identifies that a request
is already filtered.
Default implementation takes the configured name of the concrete filter
instance and appends ".FILTERED". If the filter is not fully initialized,
it falls back to its class name.
See Also: OncePerRequestFilter.getFilterName See Also: OncePerRequestFilter.ALREADY_FILTERED_SUFFIX |
shouldNotFilter | protected boolean shouldNotFilter(HttpServletRequest request) throws ServletException(Code) | | Can be overridden in subclasses for custom filtering control,
returning true to avoid filtering of the given request.
The default implementation always returns false .
Parameters: request - current HTTP request whether the given request should not be filtered throws: ServletException - in case of errors |
Fields inherited from org.springframework.web.filter.GenericFilterBean | final protected Log logger(Code)(Java Doc)
|
|
|