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

org.owasp.webgoat.application.Application Maven / Gradle / Ivy

There is a newer version: 7.1
Show newest version
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.owasp.webgoat.application;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * Singleton which is created on context startup
 *
 * @author rlawson
 * @version $Id: $Id
 */
public class Application {

    private static final Application INSTANCE = new Application();

    private Application() {

    }

    /**
     * 

getInstance.

* * @return a {@link org.owasp.webgoat.application.Application} object. */ public static final Application getInstance() { return INSTANCE; } private String version = "SNAPSHOT"; private String build = "local"; private String name = "WebGoat"; /** *

Getter for the field version.

* * @return the version */ public String getVersion() { return version; } /** *

Setter for the field version.

* * @param version the version to set */ public void setVersion(String version) { if (StringUtils.isNotBlank(version)) { this.version = version; } } /** *

Getter for the field build.

* * @return the build */ public String getBuild() { return build; } /** *

Setter for the field build.

* * @param build the build to set */ public void setBuild(String build) { if (StringUtils.isNotBlank(build)) { this.build = build; } } /** *

Getter for the field name.

* * @return the name */ public String getName() { return name; } /** *

Setter for the field name.

* * @param name the name to set */ public void setName(String name) { if (StringUtils.isNotBlank(name)) { this.name = name; } } /** {@inheritDoc} */ @Override public String toString() { return new ToStringBuilder(this). append("name", name). append("version", version). append("build", build). toString(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy