public class XmlFileSanitizer extends Object implements ConfigFileSanitizer
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
ATTRIBUTES_TO_SANITIZE |
protected Set<String> |
PARAM_KEYS_TO_SANITIZE |
protected String |
SANITIZED_VALUE |
protected Set<String> |
TAGS_TO_SANITIZE |
Constructor and Description |
---|
XmlFileSanitizer() |
Modifier and Type | Method and Description |
---|---|
String |
getFileName() |
org.springframework.core.io.Resource |
getSanitizedResource(File file) |
protected void |
sanitizeXmlDocument(Document doc) |
protected final String SANITIZED_VALUE
public XmlFileSanitizer() throws ParserConfigurationException, TransformerConfigurationException
public String getFileName()
getFileName
in interface ConfigFileSanitizer
public org.springframework.core.io.Resource getSanitizedResource(File file) throws FileSanitizationException
getSanitizedResource
in interface ConfigFileSanitizer
FileSanitizationException
protected void sanitizeXmlDocument(Document doc) throws SAXException, XPathExpressionException
SAXException
XPathExpressionException
Copyright © 2022. All rights reserved.