package marubinotto.util.web;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class CustomizedSecurityFilter implements Filter {

    private static Log logger = LogFactory.getLog(CustomizedSecurityFilter.class);

    public void init(FilterConfig config) throws ServletException {
    }

    public void doFilter(
        ServletRequest request,
        ServletResponse response,
        FilterChain chain)
    throws IOException, ServletException {
        logger.debug("doFilter");
        chain.doFilter(
            new CustomizedSecurityRequestWrapper((HttpServletRequest)request),
            response);
    }

    public void destroy() {
    }
}

@@ -474,18 +474,16 @@
 er %7B%0D%0A%0D%0A
-  
   privat
@@ -554,26 +554,24 @@
 .class);%0D%0A%0D%0A
-  
   public voi
@@ -623,33 +623,29 @@
 eption %7B%0D%0A  
- 
- 
 %7D%0D%0A%0D%0A
-  
   public voi
@@ -657,28 +657,24 @@
 ilter(%0D%0A    
- 
-   
 ServletReque
@@ -684,22 +684,19 @@
 request,
+ 
 %0D%0A
-    
     Serv
@@ -716,22 +716,19 @@
 esponse,
+ 
 %0D%0A
-    
     Filt
@@ -741,20 +741,19 @@
 n chain)
+ 
 %0D%0A
-  
   throws
@@ -786,20 +786,16 @@
 tion %7B%0D%0A
-    
     logg
@@ -817,20 +817,16 @@
 ter%22);%0D%0A
-    
     chai
@@ -836,30 +836,16 @@
 oFilter(
-%0D%0A            
 new Cust
@@ -906,21 +906,8 @@
 st),
-%0D%0A           
  res
@@ -919,19 +919,15 @@
 );%0D%0A
-  
   %7D%0D%0A%0D%0A
-  
   pu
@@ -949,18 +949,16 @@
 oy() %7B%0D%0A
-  
   %7D%0D%0A%7D%0D%0A

format code