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_SANITIZEprotected Set<String>PARAM_KEYS_TO_SANITIZEprotected StringSANITIZED_VALUEprotected Set<String>TAGS_TO_SANITIZE
-
Constructor Summary
Constructors Constructor Description XmlFileSanitizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFileName()org.springframework.core.io.ResourcegetSanitizedResource(File file)protected voidsanitizeXmlDocument(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:
getFileNamein interfaceConfigFileSanitizer
-
getSanitizedResource
public org.springframework.core.io.Resource getSanitizedResource(File file) throws FileSanitizationException
- Specified by:
getSanitizedResourcein interfaceConfigFileSanitizer- Throws:
FileSanitizationException
-
sanitizeXmlDocument
protected void sanitizeXmlDocument(Document doc) throws SAXException, XPathExpressionException
- Throws:
SAXExceptionXPathExpressionException
-
-