Class ContextResourceLink
- java.lang.Object
-
- org.apache.tomcat.util.descriptor.web.ResourceBase
-
- org.apache.tomcat.util.descriptor.web.ContextResourceLink
-
- All Implemented Interfaces:
java.io.Serializable,Injectable
public class ContextResourceLink extends ResourceBase
Representation of a resource link for a web application, as represented in a<ResourceLink>element in the server configuration file.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContextResourceLink()Default constructor for ContextResourceLink.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetFactory()Returns the factory to be used for creating the object.java.lang.StringgetGlobal()Returns the global name of this resource.inthashCode()voidsetFactory(java.lang.String factory)Sets the factory to be used for creating the object.voidsetGlobal(java.lang.String global)Sets the global name of this resource.java.lang.StringtoString()Return a String representation of this object.-
Methods inherited from class org.apache.tomcat.util.descriptor.web.ResourceBase
addInjectionTarget, getDescription, getInjectionTargets, getLookupName, getName, getNamingResources, getProperty, getType, listProperties, removeProperty, setDescription, setLookupName, setName, setNamingResources, setProperty, setType
-
-
-
-
Method Detail
-
getGlobal
public java.lang.String getGlobal()
Returns the global name of this resource.- Returns:
- the global resource name
-
setGlobal
public void setGlobal(java.lang.String global)
Sets the global name of this resource.- Parameters:
global- the global resource name
-
getFactory
public java.lang.String getFactory()
Returns the factory to be used for creating the object.- Returns:
- the factory class name
-
setFactory
public void setFactory(java.lang.String factory)
Sets the factory to be used for creating the object.- Parameters:
factory- the factory class name
-
toString
public java.lang.String toString()
Return a String representation of this object.- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classResourceBase
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classResourceBase
-
-