Modifier and Type | Class and Description |
---|---|
static class |
HeaderFilter.Header |
Constructor and Description |
---|
HeaderFilter() |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(HeaderFilter.Header header) |
void |
destroy()
Any cleanup for the filter.
|
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain nextFilter)
Creates a wrapper to compress the output.
|
void |
init(FilterConfig config)
Initialize the filter.
|
public void addHeader(HeaderFilter.Header header)
public void init(FilterConfig config) throws ServletException
Filter
init
in interface Filter
ServletException
public void doFilter(ServletRequest request, ServletResponse response, FilterChain nextFilter) throws ServletException, java.io.IOException
doFilter
in interface Filter
request
- the servlet requestresponse
- the servlet responsenextFilter
- the next filter in the chainServletException
java.io.IOException