public class XMLTagFilterPolicy extends Object
XMLTagFilterPolicy.AllowedTag.| Modifier and Type | Class and Description |
|---|---|
static class |
XMLTagFilterPolicy.AllowedTag
The allowed tags: tagName and tagAttributes to be configured for allowed tags.
|
static class |
XMLTagFilterPolicy.AllowedTagPlugin
The plugin component for configuring the list of
XMLTagFilterPolicy.AllowedTag. |
| Constructor and Description |
|---|
XMLTagFilterPolicy()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllowedTag(String tagName,
Set<String> tagAttributes)
Adds allowed tagName and its allowed attributes.
|
void |
addAllowedTag(XMLTagFilterPolicy.AllowedTag allowedTag)
Adds allowed tag.
|
void |
addAllowedTags(String... tagNames)
Adds many tags at once with empty attributes.
|
Set<XMLTagFilterPolicy.AllowedTag> |
getAllowedTagSet()
Gets allowed tag set.
|
void |
removeAllowedTag(XMLTagFilterPolicy.AllowedTag allowedTag)
Removed allowed tag.
|
void |
setAllowedTagPlugin(XMLTagFilterPolicy.AllowedTagPlugin allowedTagPlugin)
|
void |
setAllowedTagSet(Set<XMLTagFilterPolicy.AllowedTag> allowedTagSet)
Sets allowed tag set.
|
public Set<XMLTagFilterPolicy.AllowedTag> getAllowedTagSet()
public void setAllowedTagSet(Set<XMLTagFilterPolicy.AllowedTag> allowedTagSet)
allowedTagSet - the allowed tag setpublic void addAllowedTags(String... tagNames)
tagNames - public void addAllowedTag(String tagName, Set<String> tagAttributes)
tagName - the tag nametagAttributes - the set of attributespublic void addAllowedTag(XMLTagFilterPolicy.AllowedTag allowedTag)
allowedTag - the allowed tagpublic void removeAllowedTag(XMLTagFilterPolicy.AllowedTag allowedTag)
allowedTag - the allowed tagpublic void setAllowedTagPlugin(XMLTagFilterPolicy.AllowedTagPlugin allowedTagPlugin)
allowedTagPlugin - Copyright © 2003–2018 eXo Platform SAS. All rights reserved.