Class ApplicationParameter
java.lang.Object
org.apache.tomcat.util.descriptor.web.ApplicationParameter
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of this parameter.getName()Returns the name of this parameter.booleanReturns whether overrides are allowed.getValue()Returns the value of this parameter.voidsetDescription(String description) Sets the description of this parameter.voidSets the name of this parameter.voidsetOverride(boolean override) Sets whether overrides are allowed.voidSets the value of this parameter.toString()Return a String representation of this object.
-
Constructor Details
-
ApplicationParameter
public ApplicationParameter()Constructs a new ApplicationParameter.
-
-
Method Details
-
getDescription
Returns the description of this parameter.- Returns:
- the description of this parameter
-
setDescription
Sets the description of this parameter.- Parameters:
description- the description
-
getName
Returns the name of this parameter.- Returns:
- the name of this parameter
-
setName
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
Returns the value of this parameter.- Returns:
- the value of this parameter
-
setValue
Sets the value of this parameter.- Parameters:
value- the value
-
toString
Return a String representation of this object.
-