Class XmlFileSanitizer
- java.lang.Object
-
- org.opennms.systemreport.sanitizer.XmlFileSanitizer
-
- All Implemented Interfaces:
ConfigFileSanitizer
public class XmlFileSanitizer extends Object implements ConfigFileSanitizer
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description XmlFileSanitizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFileName()
org.springframework.core.io.Resource
getSanitizedResource(File file)
protected void
sanitizeXmlDocument(Document doc)
-
-
-
Field Detail
-
SANITIZED_VALUE
protected final String SANITIZED_VALUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XmlFileSanitizer
public XmlFileSanitizer() throws ParserConfigurationException, TransformerConfigurationException
-
-
Method Detail
-
getFileName
public String getFileName()
- Specified by:
getFileName
in interfaceConfigFileSanitizer
-
getSanitizedResource
public org.springframework.core.io.Resource getSanitizedResource(File file) throws FileSanitizationException
- Specified by:
getSanitizedResource
in interfaceConfigFileSanitizer
- Throws:
FileSanitizationException
-
sanitizeXmlDocument
protected void sanitizeXmlDocument(Document doc) throws SAXException, XPathExpressionException
- Throws:
SAXException
XPathExpressionException
-
-