FileDocCategorySizeDatePackage
ContextResource.javaAPI DocGlassfish v2 API5004Fri May 04 22:32:08 BST 2007org.apache.catalina.deploy

ContextResource

public class ContextResource extends Object implements Serializable
Representation of a resource reference for a web application, as represented in a <resource-ref> element in the deployment descriptor.
author
Craig R. McClanahan
version
$Revision: 1.3 $ $Date: 2007/05/05 05:32:08 $

Fields Summary
private String
auth
The authorization requirement for this resource (Application or Container).
private String
description
The description of this resource.
private String
name
The name of this resource.
private String
scope
The sharing scope of this resource factory (Shareable or Unshareable).
private String
type
The type of this resource.
protected NamingResources
resources
The NamingResources with which we are associated (if any).
Constructors Summary
Methods Summary
public java.lang.StringgetAuth()


       
        return (this.auth);
    
public java.lang.StringgetDescription()


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


       
        return (this.name);
    
public NamingResourcesgetNamingResources()


       
        return (this.resources);
    
public java.lang.StringgetScope()


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


       
        return (this.type);
    
public voidsetAuth(java.lang.String auth)

        this.auth = auth;
    
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 voidsetScope(java.lang.String scope)

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

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


        StringBuffer sb = new StringBuffer("ContextResource[");
        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 (auth != null) {
            sb.append(", auth=");
            sb.append(auth);
        }
        if (scope != null) {
            sb.append(", scope=");
            sb.append(scope);
        }
        sb.append("]");
        return (sb.toString());