public class PermittedTaglibsTLV extends TagLibraryValidator
A TagLibraryValidator class to allow a TLD to restrict what taglibs (in addition to itself) may be imported on a page where it's used.
This TLV supports the following initialization parameter:
This implementation only detects tag libraries declared on the <jsp:root> element,
including libraries in regular JSP files or JSP Documents with a specific <jsp:root>.
It does not detect libraries declared on other elements as supported by JSP 2.0.
| Constructor and Description |
|---|
PermittedTaglibsTLV() |
| Modifier and Type | Method and Description |
|---|---|
void |
setInitParameters(Map<String,Object> initParams)
Set the init data in the TLD for this validator.
|
ValidationMessage[] |
validate(String prefix,
String uri,
PageData page)
Validate a JSP page.
|
getInitParameters, releasepublic void setInitParameters(Map<String,Object> initParams)
TagLibraryValidatorsetInitParameters in class TagLibraryValidatorinitParams - A Map describing the init parameterspublic ValidationMessage[] validate(String prefix, String uri, PageData page)
TagLibraryValidatorvalidate in class TagLibraryValidatorprefix - the first prefix with which the tag library is
associated, in the XML view. Note that some tags may use
a different prefix if the namespace is redefined.uri - the tag library's unique identifierpage - the JspData page objectCopyright © 2018 JBoss by Red Hat. All rights reserved.