public class TldResourcePath extends Object
This encapsulates references to Tag Library Descriptors that can be located in different places:
META-INF/taglib.tld. Such a mapping must be explicitly converted
to a URL and entryName when using this implementation.| Constructor and Description |
|---|
TldResourcePath(URL url,
String webappPath)
Constructor identifying a TLD resource directly.
|
TldResourcePath(URL url,
String webappPath,
String entryName)
Constructor identifying a TLD packaged within a JAR file.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getEntryName()
Returns the name of the JAR entry that contains the TLD.
|
Jar |
getJar()
Deprecated.
Renamed, as it is not just a getter method. Use
openJar(). |
URL |
getUrl()
Returns the URL of the TLD or of the JAR containing the TLD.
|
String |
getWebappPath()
Returns the path within the web application, if any, that the resource
returned by
getUrl() was obtained from. |
int |
hashCode() |
Jar |
openJar() |
InputStream |
openStream()
Opens a stream to access the TLD.
|
String |
toExternalForm()
Return the external form of the URL representing this TLD.
|
public TldResourcePath(URL url, String webappPath)
url - the location of the TLDwebappPath - the web application path, if any, of the TLDpublic URL getUrl()
public String getWebappPath()
getUrl() was obtained from.public String getEntryName()
public String toExternalForm()
public InputStream openStream() throws IOException
IOException - if there was a problem opening the stream@Deprecated public Jar getJar() throws IOException
openJar().IOExceptionpublic Jar openJar() throws IOException
IOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.