Class ApplicationParameter
- java.lang.Object
-
- org.apache.tomcat.util.descriptor.web.ApplicationParameter
-
- All Implemented Interfaces:
java.io.Serializable
public class ApplicationParameter extends java.lang.Object implements java.io.SerializableRepresentation 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ApplicationParameter()Constructs a new ApplicationParameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Returns the description of this parameter.java.lang.StringgetName()Returns the name of this parameter.booleangetOverride()Returns whether overrides are allowed.java.lang.StringgetValue()Returns the value of this parameter.voidsetDescription(java.lang.String description)Sets the description of this parameter.voidsetName(java.lang.String name)Sets the name of this parameter.voidsetOverride(boolean override)Sets whether overrides are allowed.voidsetValue(java.lang.String value)Sets the value of this parameter.java.lang.StringtoString()Return a String representation of this object.
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Returns the description of this parameter.- Returns:
- the description of this parameter
-
setDescription
public void setDescription(java.lang.String description)
Sets the description of this parameter.- Parameters:
description- the description
-
getName
public java.lang.String getName()
Returns the name of this parameter.- Returns:
- the name of this parameter
-
setName
public void setName(java.lang.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 java.lang.String getValue()
Returns the value of this parameter.- Returns:
- the value of this parameter
-
setValue
public void setValue(java.lang.String value)
Sets the value of this parameter.- Parameters:
value- the value
-
toString
public java.lang.String toString()
Return a String representation of this object.- Overrides:
toStringin classjava.lang.Object
-
-