Code example for ServletWebRequest

0
    @Resource(name="blCustomerStateRequestProcessor") 
    protected CustomerStateRequestProcessor customerStateProcessor; 
 
    @Override 
    public void doFilter(ServletRequest baseRequest, ServletResponse baseResponse, FilterChain chain) throws IOException, ServletException { 
        customerStateProcessor.process(new ServletWebRequest((HttpServletRequest) baseRequest, (HttpServletResponse)baseResponse)); 
        chain.doFilter(baseRequest, baseResponse); 
    } 
 
    @Override 
    public int getOrder() { 
        //FilterChainOrder has been dropped from Spring Security 3 
        //return FilterChainOrder.REMEMBER_ME_FILTER+1; 
        return 1501; 
    } 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java