Package com.atlassian.bamboo.utils.xml
Class BambooXmlUtils
- java.lang.Object
-
- com.atlassian.bamboo.utils.xml.BambooXmlUtils
-
public class BambooXmlUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static XMLInputFactory
configure(XMLInputFactory xmlInputFactory)
static org.apache.commons.digester.Digester
newSecureDigester()
static DocumentBuilderFactory
newSecureDocumentBuilderFactory(@Nullable org.apache.log4j.Logger log)
static org.dom4j.io.SAXReader
newSecureSaxReader()
static XMLInputFactory
newSecureXmlInputFactory()
static XMLReader
newSecureXmlReader()
Deprecated.since 6.4, use {@link SecureXmlParserFactory::newXmlReader}static @NotNull String
sanitiseXml10(@NotNull String value)
Removes non-XML 1.0 characters from the input string.static @NotNull Reader
sanitiseXml10Reader(@NotNull Reader in)
FiltersReader
and removes illegal XML 1.0 characters as defined byBambooUnicodeUtils.validXml10(int)
-
-
-
Method Detail
-
newSecureSaxReader
public static org.dom4j.io.SAXReader newSecureSaxReader()
-
newSecureDocumentBuilderFactory
public static DocumentBuilderFactory newSecureDocumentBuilderFactory(@Nullable @Nullable org.apache.log4j.Logger log)
-
newSecureXmlInputFactory
public static XMLInputFactory newSecureXmlInputFactory()
-
configure
public static XMLInputFactory configure(XMLInputFactory xmlInputFactory)
-
newSecureDigester
public static org.apache.commons.digester.Digester newSecureDigester()
-
newSecureXmlReader
@Deprecated public static XMLReader newSecureXmlReader()
Deprecated.since 6.4, use {@link SecureXmlParserFactory::newXmlReader}
-
sanitiseXml10
@NotNull public static @NotNull String sanitiseXml10(@NotNull @NotNull String value)
Removes non-XML 1.0 characters from the input string. The input string is returned as-is if no invalid characters are found.
-
sanitiseXml10Reader
@NotNull public static @NotNull Reader sanitiseXml10Reader(@NotNull @NotNull Reader in)
FiltersReader
and removes illegal XML 1.0 characters as defined byBambooUnicodeUtils.validXml10(int)
- Returns:
- filtered
Reader
with no illegal XML 1.0 characters
-
-