com.sun.xml.ws.util.xml
Class XmlUtil

java.lang.Object
  extended by com.sun.xml.ws.util.xml.XmlUtil

public class XmlUtil
extends Object

Author:
WS Development Team

Field Summary
static ErrorHandler DRACONIAN_ERROR_HANDLER
          ErrorHandler that always treat the error as fatal.
 
Constructor Summary
XmlUtil()
           
 
Method Summary
static SchemaFactory allowExternalAccess(SchemaFactory sf, String value, boolean disableSecureProcessing)
           
static EntityResolver createDefaultCatalogResolver()
          Gets a default EntityResolver for catalog at META-INF/jaxws-catalog.xml
static EntityResolver createEntityResolver(URL catalogUrl)
           
static Iterator getAllAttributes(Element element)
           
static Iterator getAllChildren(Element element)
           
static String getAttributeNSOrNull(Element e, QName name)
           
static String getAttributeNSOrNull(Element e, String name, String nsURI)
           
static String getAttributeOrNull(Element e, String name)
           
static String getLocalPart(String s)
           
static String getPrefix(String s)
           
static String getTextForNode(Node node)
           
static InputStream getUTF8Stream(String s)
           
static
<T extends Result>
T
identityTransform(Source src, T result)
          Performs identity transformation.
static DocumentBuilderFactory newDocumentBuilderFactory()
           
static DocumentBuilderFactory newDocumentBuilderFactory(boolean secureXmlProcessing)
           
static SAXParserFactory newSAXParserFactory(boolean secureXmlProcessingEnabled)
           
static Transformer newTransformer()
          Creates a new identity transformer.
static TransformerFactory newTransformerFactory()
           
static TransformerFactory newTransformerFactory(boolean secureXmlProcessingEnabled)
           
static XMLInputFactory newXMLInputFactory(boolean secureXmlProcessingEnabled)
           
static XPathFactory newXPathFactory(boolean secureXmlProcessingEnabled)
           
static List<String> parseTokenList(String tokenList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DRACONIAN_ERROR_HANDLER

public static final ErrorHandler DRACONIAN_ERROR_HANDLER
ErrorHandler that always treat the error as fatal.

Constructor Detail

XmlUtil

public XmlUtil()
Method Detail

getPrefix

public static String getPrefix(String s)

getLocalPart

public static String getLocalPart(String s)

getAttributeOrNull

public static String getAttributeOrNull(Element e,
                                        String name)

getAttributeNSOrNull

public static String getAttributeNSOrNull(Element e,
                                          String name,
                                          String nsURI)

getAttributeNSOrNull

public static String getAttributeNSOrNull(Element e,
                                          QName name)

getAllChildren

public static Iterator getAllChildren(Element element)

getAllAttributes

public static Iterator getAllAttributes(Element element)

parseTokenList

public static List<String> parseTokenList(String tokenList)

getTextForNode

public static String getTextForNode(Node node)

getUTF8Stream

public static InputStream getUTF8Stream(String s)

newTransformer

public static Transformer newTransformer()
Creates a new identity transformer.


identityTransform

public static <T extends Result> T identityTransform(Source src,
                                                     T result)
                                          throws TransformerException,
                                                 SAXException,
                                                 ParserConfigurationException,
                                                 IOException
Performs identity transformation.

Throws:
TransformerException
SAXException
ParserConfigurationException
IOException

createEntityResolver

public static EntityResolver createEntityResolver(@Nullable
                                                  URL catalogUrl)

createDefaultCatalogResolver

public static EntityResolver createDefaultCatalogResolver()
Gets a default EntityResolver for catalog at META-INF/jaxws-catalog.xml


newDocumentBuilderFactory

public static DocumentBuilderFactory newDocumentBuilderFactory()

newDocumentBuilderFactory

public static DocumentBuilderFactory newDocumentBuilderFactory(boolean secureXmlProcessing)

newTransformerFactory

public static TransformerFactory newTransformerFactory(boolean secureXmlProcessingEnabled)

newTransformerFactory

public static TransformerFactory newTransformerFactory()

newSAXParserFactory

public static SAXParserFactory newSAXParserFactory(boolean secureXmlProcessingEnabled)

newXPathFactory

public static XPathFactory newXPathFactory(boolean secureXmlProcessingEnabled)

newXMLInputFactory

public static XMLInputFactory newXMLInputFactory(boolean secureXmlProcessingEnabled)

allowExternalAccess

public static SchemaFactory allowExternalAccess(SchemaFactory sf,
                                                String value,
                                                boolean disableSecureProcessing)


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.