public class NoOpFilter extends Object implements javax.servlet.Filter
Filter
interface. This filter does nothing but
calling the filterchain with the provided request and response.Constructor and Description |
---|
NoOpFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Does nothing.
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
Does nothing but calling the filterchain with the provided request and response.
|
void |
init(javax.servlet.FilterConfig filterConfig)
Does nothing.
|
public void init(javax.servlet.FilterConfig filterConfig)
init
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
- if the filter chain throws an IOException
.javax.servlet.ServletException
- if the filter chain throws an ServletException
.public void destroy()
destroy
in interface javax.servlet.Filter
Copyright © 2014–2015. All rights reserved.