FileDocCategorySizeDatePackage
ApplicationParameter.javaAPI DocApache Tomcat 6.0.143329Fri Jul 20 04:20:36 BST 2007org.apache.catalina.deploy

ApplicationParameter

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.
author
Craig R. McClanahan
version
$Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

Fields Summary
private String
description
The description of this environment entry.
private String
name
The name of this application parameter.
private boolean
override
Does this application parameter allow overrides by the application deployment descriptor?
private String
value
The value of this application parameter.
Constructors Summary
Methods Summary
public java.lang.StringgetDescription()


       
        return (this.description);
    
public java.lang.StringgetName()


       
        return (this.name);
    
public booleangetOverride()


       
        return (this.override);
    
public java.lang.StringgetValue()


       
        return (this.value);
    
public voidsetDescription(java.lang.String description)

        this.description = description;
    
public voidsetName(java.lang.String name)

        this.name = name;
    
public voidsetOverride(boolean override)

        this.override = override;
    
public voidsetValue(java.lang.String value)

        this.value = value;
    
public java.lang.StringtoString()
Return a String representation of this object.


        StringBuffer sb = new StringBuffer("ApplicationParameter[");
        sb.append("name=");
        sb.append(name);
        if (description != null) {
            sb.append(", description=");
            sb.append(description);
        }
        sb.append(", value=");
        sb.append(value);
        sb.append(", override=");
        sb.append(override);
        sb.append("]");
        return (sb.toString());