Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package de.swm.gwt.server;
 
Fuegt no-cache Response Header bei POST Requests hinzu.

Author(s):
fuchs.florian
copyright (C) 2010, SWM Services GmbH
public class AddNoCacheHeadersFilter extends NoCacheFilter {

Aktiviert no-cache Header, für POST Requests.

Parameters:
request request.
response response.
Returns:
true/false
	public boolean isDoFilter(HttpServletRequest requestHttpServletResponse response) {
		boolean filter = false;
		if ("POST".equals(request.getMethod().toUpperCase())) {
			filter = true;
		}
		return filter;
	}
New to GrepCode? Check out our FAQ X