Class ApplicationParameter

java.lang.Object
org.apache.tomcat.util.descriptor.web.ApplicationParameter
All Implemented Interfaces:
Serializable

public class ApplicationParameter extends Object implements Serializable
Representation of a context initialization parameter that is configured in the server configuration file, rather than the application deployment descriptor. This is convenient for establishing default values (which may be configured to allow application overrides or not) without having to modify the application deployment descriptor itself.
See Also:
  • Constructor Details

    • ApplicationParameter

      public ApplicationParameter()
      Constructs a new ApplicationParameter.
  • Method Details

    • getDescription

      public String getDescription()
      Returns the description of this parameter.
      Returns:
      the description of this parameter
    • setDescription

      public void setDescription(String description)
      Sets the description of this parameter.
      Parameters:
      description - the description
    • getName

      public String getName()
      Returns the name of this parameter.
      Returns:
      the name of this parameter
    • setName

      public void setName(String name)
      Sets the name of this parameter.
      Parameters:
      name - the name
    • getOverride

      public boolean getOverride()
      Returns whether overrides are allowed.
      Returns:
      whether overrides are allowed
    • setOverride

      public void setOverride(boolean override)
      Sets whether overrides are allowed.
      Parameters:
      override - whether overrides are allowed
    • getValue

      public String getValue()
      Returns the value of this parameter.
      Returns:
      the value of this parameter
    • setValue

      public void setValue(String value)
      Sets the value of this parameter.
      Parameters:
      value - the value
    • toString

      public String toString()
      Return a String representation of this object.
      Overrides:
      toString in class Object