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

ContextResource

public class ContextResource extends ResourceBase 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
author
Peter Rossbach (pero@apache.org)
version
$Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

Fields Summary
private String
auth
The authorization requirement for this resource (Application or Container).
private String
scope
The sharing scope of this resource factory (Shareable or Unshareable).
Constructors Summary
Methods Summary
public java.lang.StringgetAuth()


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


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

        this.auth = auth;
    
public voidsetScope(java.lang.String scope)

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


        StringBuffer sb = new StringBuffer("ContextResource[");
        sb.append("name=");
        sb.append(getName());
        if (getDescription() != null) {
            sb.append(", description=");
            sb.append(getDescription());
        }
        if (getType() != null) {
            sb.append(", type=");
            sb.append(getType());
        }
        if (auth != null) {
            sb.append(", auth=");
            sb.append(auth);
        }
        if (scope != null) {
            sb.append(", scope=");
            sb.append(scope);
        }
        sb.append("]");
        return (sb.toString());