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

org.webpieces.router.impl.services.RouteInfoForHtml Maven / Gradle / Ivy

package org.webpieces.router.impl.services;

import org.webpieces.ctx.api.HttpMethod;

public class RouteInfoForHtml implements RouteData {
	private final boolean isCheckSecureToken;
	private final HttpMethod httpMethod;

	public RouteInfoForHtml(boolean isCheckSecureToken, HttpMethod httpMethod) {
		super();
		this.isCheckSecureToken = isCheckSecureToken;
		this.httpMethod = httpMethod;
	}
	
	public boolean isCheckSecureToken() {
		return isCheckSecureToken;
	}

	public boolean isPostOnly() {
		return httpMethod == HttpMethod.POST;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy