
org.geomajas.command.dto.LogRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geomajas-command Show documentation
Show all versions of geomajas-command Show documentation
Geomajas server: Main - commands
The newest version!
/*
* This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
*
* Copyright 2008-2016 Geosparc nv, http://www.geosparc.com/, Belgium.
*
* The program is available in open source according to the GNU Affero
* General Public License. All contributions in this program are covered
* by the Geomajas Contributors License Agreement. For full licensing
* details, see LICENSE.txt in the project root.
*/
package org.geomajas.command.dto;
import org.geomajas.command.CommandRequest;
/**
* Request object for {@link org.geomajas.command.general.LogCommand}.
*
* @author Joachim Van der Auwera
*/
public class LogRequest implements CommandRequest {
private static final long serialVersionUID = 151L;
/**
* Command name for this request.
*
* @since 1.9.0
* */
public static final String COMMAND = "command.general.Log";
public static final int LEVEL_DEBUG = 0;
public static final int LEVEL_INFO = 1;
public static final int LEVEL_WARN = 2;
public static final int LEVEL_ERROR = 3;
private String statement;
private int level;
public String getStatement() {
return statement;
}
public void setStatement(String statement) {
this.statement = statement;
}
public int getLevel() {
return level;
}
public void setLevel(int level) {
this.level = level;
}
@Override
public String toString() {
return "LogRequest{" +
"statement='" + statement + '\'' +
", level=" + level +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy