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, release
public void setInitParameters(Map<String,Object> initParams)
TagLibraryValidator
setInitParameters
in class TagLibraryValidator
initParams
- A Map describing the init parameterspublic ValidationMessage[] validate(String prefix, String uri, PageData page)
TagLibraryValidator
validate
in class TagLibraryValidator
prefix
- 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 © 2019 JBoss by Red Hat. All rights reserved.