All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.leopard.web4j.nobug.csrf.CsrfUtil Maven / Gradle / Ivy

There is a newer version: 0.9.12
Show newest version
package io.leopard.web4j.nobug.csrf;

import javax.servlet.http.HttpServletRequest;

public class CsrfUtil {

	public static void setExcludeUri(HttpServletRequest request, boolean isExcludeUri) {
		request.setAttribute("isExcludeUri", isExcludeUri);
	}

	public static boolean isExcludeUri(HttpServletRequest request) {
		Object obj = request.getAttribute("isExcludeUri");
		if (obj == null) {
			return false;
		}
		return (Boolean) obj;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy