Class TldResourcePath
- java.lang.Object
- 
- org.apache.tomcat.util.descriptor.tld.TldResourcePath
 
- 
 public class TldResourcePath extends java.lang.ObjectA TLD Resource Path as defined in JSP 7.3.2.This encapsulates references to Tag Library Descriptors that can be located in different places: - As resources within an application
- As entries in JAR files included in the application
- As resources provided by the container
 META-INF/taglib.tld. Such a mapping must be explicitly converted to a URL and entryName when using this implementation.
- 
- 
Constructor SummaryConstructors Constructor Description TldResourcePath(java.net.URL url, java.lang.String webappPath)Constructor identifying a TLD resource directly.TldResourcePath(java.net.URL url, java.lang.String webappPath, java.lang.String entryName)Constructor identifying a TLD packaged within a JAR file.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetEntryName()Returns the name of the JAR entry that contains the TLD.java.net.URLgetUrl()Returns the URL of the TLD or of the JAR containing the TLD.java.lang.StringgetWebappPath()Returns the path within the web application, if any, that the resource returned bygetUrl()was obtained from.inthashCode()JaropenJar()java.io.InputStreamopenStream()Opens a stream to access the TLD.java.lang.StringtoExternalForm()Return the external form of the URL representing this TLD.
 
- 
- 
- 
Constructor Detail- 
TldResourcePathpublic TldResourcePath(java.net.URL url, java.lang.String webappPath)Constructor identifying a TLD resource directly.- Parameters:
- url- the location of the TLD
- webappPath- the web application path, if any, of the TLD
 
 - 
TldResourcePathpublic TldResourcePath(java.net.URL url, java.lang.String webappPath, java.lang.String entryName)Constructor identifying a TLD packaged within a JAR file.- Parameters:
- url- the location of the JAR
- webappPath- the web application path, if any, of the JAR
- entryName- the name of the entry in the JAR
 
 
- 
 - 
Method Detail- 
getUrlpublic java.net.URL getUrl() Returns the URL of the TLD or of the JAR containing the TLD.- Returns:
- the URL of the TLD
 
 - 
getWebappPathpublic java.lang.String getWebappPath() Returns the path within the web application, if any, that the resource returned bygetUrl()was obtained from.- Returns:
- the web application path or @null if the the resource is not located within a web application
 
 - 
getEntryNamepublic java.lang.String getEntryName() Returns the name of the JAR entry that contains the TLD. May be null to indicate the URL refers directly to the TLD itself.- Returns:
- the name of the JAR entry that contains the TLD
 
 - 
toExternalFormpublic java.lang.String toExternalForm() Return the external form of the URL representing this TLD. This can be used as a canonical location for the TLD itself, for example, as the systemId to use when parsing its XML.- Returns:
- the external form of the URL representing this TLD
 
 - 
openStreampublic java.io.InputStream openStream() throws java.io.IOExceptionOpens a stream to access the TLD.- Returns:
- a stream containing the TLD content
- Throws:
- java.io.IOException- if there was a problem opening the stream
 
 - 
openJarpublic Jar openJar() throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-