| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 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 | |
|
| 30 | |
|
| 31 | |
|
| 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 | |
} |