public abstract class GenericHTTPFilter extends GenericFilter
ServletRequest
to
HttpServletRequest
etc. If the request or response cannot be cast to the correct
classes a servlet exception will be thrown. Provides a
doHTTPFilter(HttpServletRequest,HttpServletResponse,FilterChain)
method that
is intended to be implemented to provide the behaviour of the filter.context, filterConfig
Constructor and Description |
---|
GenericHTTPFilter() |
Modifier and Type | Method and Description |
---|---|
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain) |
abstract void |
doHTTPFilter(HttpServletRequest request,
HttpServletResponse response,
FilterChain chain)
A method that executes the filter behaviour for HTTP requests and responses.
|
configureFilter, destroy, getFilterConfig, getServletContext, init, setFilterConfig
public final void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
doFilter
in interface Filter
doFilter
in class GenericFilter
IOException
ServletException
public abstract void doHTTPFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException
request
- The HTTP requestresponse
- The HTTP responsechain
- The filter chainIOException
ServletException
Copyright © 2016. All Rights Reserved.