Coverage Report - org.kuali.student.security.filter.AuthenticationGwtRpcFilter
 
Classes in this File Line Coverage Branch Coverage Complexity
AuthenticationGwtRpcFilter
0%
0/8
0%
0/4
2
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.security.filter;
 17  
 
 18  
 import java.io.IOException;
 19  
 
 20  
 import javax.servlet.FilterChain;
 21  
 import javax.servlet.ServletException;
 22  
 import javax.servlet.http.HttpServletRequest;
 23  
 import javax.servlet.http.HttpServletResponse;
 24  
 
 25  
 import org.springframework.security.ui.FilterChainOrder;
 26  
 import org.springframework.security.ui.SpringSecurityFilter;
 27  
 
 28  
 /**
 29  
  * This is a description of what this class does - Rich don't forget to fill this in. 
 30  
  * 
 31  
  * @author Kuali Rice Team (kuali-rice@googlegroups.com)
 32  
  *
 33  
  */
 34  0
 public class AuthenticationGwtRpcFilter extends SpringSecurityFilter {
 35  
     
 36  
     public void doFilterHttp(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws IOException, ServletException{
 37  
         
 38  0
         String URI = request.getRequestURI();
 39  
         
 40  0
         if(URI.endsWith(".html") && !URI.endsWith(".cache.html")){
 41  0
             response.setHeader("Cache-Control", "no-cache");
 42  0
             response.setHeader("Cache-Control", "no-store");
 43  
         }
 44  0
         filterChain.doFilter(request, response);
 45  0
     }
 46  
 
 47  
     public int getOrder(){
 48  0
         return FilterChainOrder.CAS_PROCESSING_FILTER + 1;
 49  
     }
 50  
 }