com.atlassian.bamboo.utils.xml
Class BambooXmlUtils

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

public class BambooXmlUtils
extends java.lang.Object


Method Summary
static javax.xml.stream.XMLInputFactory configure(javax.xml.stream.XMLInputFactory xmlInputFactory)
           
static org.apache.commons.digester.Digester newSecureDigester()
           
static javax.xml.parsers.DocumentBuilderFactory newSecureDocumentBuilderFactory(org.apache.log4j.Logger log)
           
static org.dom4j.io.SAXReader newSecureSaxReader()
           
static javax.xml.stream.XMLInputFactory newSecureXmlInputFactory()
           
static org.xml.sax.XMLReader newSecureXmlReader()
           
static java.lang.String sanitiseXml10(java.lang.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 javax.xml.parsers.DocumentBuilderFactory newSecureDocumentBuilderFactory(@Nullable
                                                                                       org.apache.log4j.Logger log)

newSecureXmlInputFactory

public static javax.xml.stream.XMLInputFactory newSecureXmlInputFactory()

configure

public static javax.xml.stream.XMLInputFactory configure(javax.xml.stream.XMLInputFactory xmlInputFactory)

newSecureDigester

public static org.apache.commons.digester.Digester newSecureDigester()

newSecureXmlReader

public static org.xml.sax.XMLReader newSecureXmlReader()

sanitiseXml10

@NotNull
public static java.lang.String sanitiseXml10(@NotNull
                                                     java.lang.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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.