public class TldLocationsCache extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ABS_URI
The types of URI one may specify for a tag library
|
static int |
NOROOT_REL_URI |
static int |
ROOT_REL_URI |
Constructor and Description |
---|
TldLocationsCache(ServletContext ctxt)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static TldLocationsCache |
getInstance(ServletContext ctxt)
Obtains the TLD location cache for the given
ServletContext and
creates one if one does not currently exist. |
TldLocation |
getLocation(String uri)
Gets the 'location' of the TLD associated with the given taglib 'uri'.
|
static void |
setNoTldJars(String jarNames)
Sets the list of JARs that are known not to contain any TLDs.
|
static int |
uriType(String uri)
Returns the type of a URI:
ABS_URI
ROOT_REL_URI
NOROOT_REL_URI
|
public static final int ABS_URI
public static final int ROOT_REL_URI
public static final int NOROOT_REL_URI
public TldLocationsCache(ServletContext ctxt)
ctxt
- the servlet context of the web application in which Jasper
is runningpublic static void setNoTldJars(String jarNames)
jarNames
- List of comma-separated names of JAR files that are
known not to contain any TLDspublic static TldLocationsCache getInstance(ServletContext ctxt)
ServletContext
and
creates one if one does not currently exist.ctxt
- The Servlet context for which the cache is required.public TldLocation getLocation(String uri) throws JasperException
uri
- The taglib uriJasperException
- if initialisation of the cache failspublic static int uriType(String uri)
uri
- The URI for which the type is requiredCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.