public class TldScanner extends Object
| Constructor and Description |
|---|
TldScanner(ServletContext context,
boolean namespaceAware,
boolean validation,
boolean blockExternal)
Initialize with the application's ServletContext.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getListeners()
Returns a list of all listeners declared by scanned TLDs.
|
Map<TldResourcePath,TaglibXml> |
getTldResourcePathTaglibXmlMap()
Returns the map of TldResourcePath to parsed XML files built by this
scanner.
|
Map<String,TldResourcePath> |
getUriTldResourcePathMap()
Returns the map of URI to TldResourcePath built by this scanner.
|
protected void |
parseTld(String resourcePath) |
protected void |
parseTld(TldResourcePath path) |
void |
scan()
Scan for TLDs in all places defined by the specification:
Tag libraries defined by the platform
Entries from <jsp-config> in web.xml
A resources under /WEB-INF
In jar files from /WEB-INF/lib
Additional entries from the container
|
void |
scanJars()
Scan for TLDs in JARs in /WEB-INF/lib.
|
protected void |
scanJspConfig()
Scan for TLDs defined in <jsp-config>.
|
protected void |
scanPlatform()
Scan for TLDs required by the platform specification.
|
protected void |
scanResourcePaths(String startPath)
Scan web application resources for TLDs, recursively.
|
void |
setClassLoader(ClassLoader classLoader)
Set the class loader used by the digester to create objects as a result
of this scan.
|
public TldScanner(ServletContext context,
boolean namespaceAware,
boolean validation,
boolean blockExternal)
context - the application's servletContextpublic void scan()
throws IOException,
SAXException
IOException - if there was a problem scanning for or loading a TLDSAXException - if there was a problem parsing a TLDpublic Map<String,TldResourcePath> getUriTldResourcePathMap()
public Map<TldResourcePath,TaglibXml> getTldResourcePathTaglibXmlMap()
public List<String> getListeners()
public void setClassLoader(ClassLoader classLoader)
protected void scanPlatform()
protected void scanJspConfig()
throws IOException,
SAXException
IOExceptionSAXExceptionprotected void scanResourcePaths(String startPath) throws IOException, SAXException
startPath - the directory resource to scanIOException - if there was a problem scanning for or loading a TLDSAXException - if there was a problem parsing a TLDpublic void scanJars()
protected void parseTld(String resourcePath) throws IOException, SAXException
IOExceptionSAXExceptionprotected void parseTld(TldResourcePath path) throws IOException, SAXException
IOExceptionSAXExceptionCopyright © 2014 Mort Bay Consulting. All Rights Reserved.