com.atlassian.bamboo.utils.xml
Class BambooXmlUtils

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

public class BambooXmlUtils
extends Object


Method Summary
static XMLInputFactory configure(XMLInputFactory xmlInputFactory)
           
static org.apache.commons.digester.Digester newSecureDigester()
           
static DocumentBuilderFactory newSecureDocumentBuilderFactory(org.apache.log4j.Logger log)
           
static org.dom4j.io.SAXReader newSecureSaxReader()
           
static XMLInputFactory newSecureXmlInputFactory()
           
static XMLReader newSecureXmlReader()
           
static String sanitiseXml10(String value)
          Removes non-XML 1.0 characters from the input string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newSecureSaxReader

public static org.dom4j.io.SAXReader newSecureSaxReader()

newSecureDocumentBuilderFactory

public static DocumentBuilderFactory newSecureDocumentBuilderFactory(@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

public static XMLReader newSecureXmlReader()

sanitiseXml10

@NotNull
public static String sanitiseXml10(@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.



Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.