Class BambooXmlUtils

java.lang.Object
com.atlassian.bamboo.utils.xml.BambooXmlUtils

public class BambooXmlUtils extends Object
  • Method Details

    • 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)
      Filters Reader and removes illegal XML 1.0 characters as defined by BambooUnicodeUtils.validXml10(int)
      Returns:
      filtered Reader with no illegal XML 1.0 characters