| java.lang.Object example.filters.ExampleResponseFilter
ExampleResponseFilter | public class ExampleResponseFilter implements Filter(Code) | | A cut-and-paste template for implementing a Filter that wraps the Response
|
Method Summary | |
public void | destroy() Any cleanup for the filter. | public void | doFilter(ServletRequest request, ServletResponse response, FilterChain nextFilter) Called by Resin each time a request/response pair is passed
through the chain due to a client request for a resource at the
end of the chain. | public void | init(FilterConfig config) Called once to initialize the Filter. |
destroy | public void destroy()(Code) | | Any cleanup for the filter. This will only happen once, right
before the Filter is released by Resin for garbage collection.
|
doFilter | public void doFilter(ServletRequest request, ServletResponse response, FilterChain nextFilter) throws ServletException, IOException(Code) | | Called by Resin each time a request/response pair is passed
through the chain due to a client request for a resource at the
end of the chain. The FilterChain parameter is used by the
Filter to pass on the request and response to the next Filter in
the chain.
|
init | public void init(FilterConfig config) throws ServletException(Code) | | Called once to initialize the Filter. If init() does not
complete successfully (it throws an exception, or takes a really
long time to return), the Filter will not be placed into service.
|
|
|