public class TldScanner extends java.lang.Object implements ServletContainerInitializer
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 |
---|
TldScanner()
Default Constructor.
|
TldScanner(ServletContext ctxt,
boolean isValidationEnabled)
Constructor used in Jasper
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getLocation(java.lang.String uri)
Gets the 'location' of the TLD associated with the given taglib 'uri'.
|
void |
onStartup(java.util.Set<java.lang.Class<?>> c,
ServletContext ctxt)
Notifies this ServletContainerInitializer of the startup
of the application represented by the given ServletContext.
|
static int |
uriType(java.lang.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 TldScanner()
public TldScanner(ServletContext ctxt, boolean isValidationEnabled)
public void onStartup(java.util.Set<java.lang.Class<?>> c, ServletContext ctxt) throws ServletException
ServletContainerInitializer
If this ServletContainerInitializer is bundled in a JAR file inside the WEB-INF/lib directory of an application, its onStartup method will be invoked only once during the startup of the bundling application. If this ServletContainerInitializer is bundled inside a JAR file outside of any WEB-INF/lib directory, but still discoverable as described above, its onStartup method will be invoked every time an application is started.
onStartup
in interface ServletContainerInitializer
c
- the Set of application classes that extend, implement, or
have been annotated with the class types specified by the
HandlesTypes
annotation,
or null if there are no matches, or this
ServletContainerInitializer has not been annotated with
HandlesTypesctxt
- the ServletContext of the web application that
is being started and in which the classes contained in c
were foundServletException
- if an error has occurredpublic java.lang.String[] getLocation(java.lang.String uri) throws JasperException
uri
- The taglib uriJasperException
public static int uriType(java.lang.String uri)