FileDocCategorySizeDatePackage
ContextEnvironment.javaAPI DocApache Tomcat 6.0.143918Fri Jul 20 04:20:34 BST 2007org.apache.catalina.deploy

ContextEnvironment

public class ContextEnvironment extends Object implements Serializable
Representation of an application environment entry, as represented in an <env-entry> element in the deployment descriptor.
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 environment entry.
private boolean
override
Does this environment entry allow overrides by the application deployment descriptor?
private String
type
The type of this environment entry.
private String
value
The value of this environment entry.
protected NamingResources
resources
The NamingResources with which we are associated (if any).
Constructors Summary
Methods Summary
public java.lang.StringgetDescription()


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


       
        return (this.name);
    
public NamingResourcesgetNamingResources()


       
        return (this.resources);
    
public booleangetOverride()


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


       
        return (this.type);
    
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;
    
voidsetNamingResources(NamingResources resources)

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

        this.override = override;
    
public voidsetType(java.lang.String type)

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

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


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