|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts2.jasper.compiler.TldLocationsCache
public class TldLocationsCache
A container for all tag libraries that are defined "globally" for the web application.
Tag Libraries can be defined globally in one of two ways: 1. Via
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
TldLocationsCache(javax.servlet.ServletContext ctxt)
|
|
TldLocationsCache(javax.servlet.ServletContext ctxt,
boolean redeployMode)
Constructor. |
|
| Method Summary | |
|---|---|
java.util.Set<java.lang.String> |
getAbsolutePathsOfLocations()
Returns a list of absolute paths of the locations in the cache |
java.lang.String[] |
getLocation(java.lang.String uri)
Gets the 'location' of the TLD associated with the given taglib 'uri'. |
static void |
setNoTldJars(java.lang.String jarNames)
Sets the list of JARs that are known not to contain any TLDs. |
static int |
uriType(java.lang.String uri)
Returns the type of a URI: ABS_URI ROOT_REL_URI NOROOT_REL_URI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ABS_URI
public static final int ROOT_REL_URI
public static final int NOROOT_REL_URI
| Constructor Detail |
|---|
public TldLocationsCache(javax.servlet.ServletContext ctxt)
public TldLocationsCache(javax.servlet.ServletContext ctxt,
boolean redeployMode)
ctxt - the servlet context of the web application in which Jasper
is runningredeployMode - if true, then the compiler will allow redeploying
a tag library from the same jar, at the expense of slowing down the
server a bit. Note that this may only work on JDK 1.3.1_01a and later,
because of JDK bug 4211817 fixed in this release.
If redeployMode is false, a faster but less capable mode will be used.| Method Detail |
|---|
public static void setNoTldJars(java.lang.String jarNames)
jarNames - List of comma-separated names of JAR files that are
known not to contain any TLDs
public java.lang.String[] getLocation(java.lang.String uri)
throws JasperException
uri - The taglib uri
JasperExceptionpublic java.util.Set<java.lang.String> getAbsolutePathsOfLocations()
public static int uriType(java.lang.String uri)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||