FileDocCategorySizeDatePackage
FilterWrap.javaAPI DocExample877Tue Jun 10 14:41:18 BST 2003com.jspservletcookbook

FilterWrap

public class FilterWrap extends Object implements Filter

Fields Summary
private FilterConfig
config
Constructors Summary
public FilterWrap()
Creates new RequestFilter

Methods Summary
public voiddestroy()

        /*called before the Filter instance is removed 
        from service by the web container*/

    
public voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)

 
        if(response instanceof HttpServletResponse){
            chain.doFilter(request,new ResponseWrapper((HttpServletResponse)response));
		} else {
		    chain.doFilter(request,response);
		}
    
public voidinit(javax.servlet.FilterConfig filterConfig)

    
        this.config = filterConfig;