Package com.sun.xml.ws.util.xml
Class XmlUtil
- java.lang.Object
-
- com.sun.xml.ws.util.xml.XmlUtil
-
public class XmlUtil extends Object
- Author:
- WS Development Team
-
-
Field Summary
Fields Modifier and Type Field Description static ErrorHandler
DRACONIAN_ERROR_HANDLER
ErrorHandler
that always treat the error as fatal.
-
Constructor Summary
Constructors Constructor Description XmlUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SchemaFactory
allowExternalAccess(SchemaFactory sf, String value, boolean disableSecurity)
static EntityResolver
createDefaultCatalogResolver()
Gets a default EntityResolver for catalog at META-INF/jaxws-catalog.xmlstatic EntityResolver
createEntityResolver(URL catalogUrl)
Gets an EntityResolver using XML catalogstatic Iterator
getAllAttributes(Element element)
static Iterator
getAllChildren(Element element)
static String
getAttributeNSOrNull(Element e, String name, String nsURI)
static String
getAttributeNSOrNull(Element e, QName name)
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>
TidentityTransform(Source src, T result)
Performs identity transformation.static DocumentBuilderFactory
newDocumentBuilderFactory(boolean disableSecurity)
static SAXParserFactory
newSAXParserFactory(boolean disableSecurity)
static Transformer
newTransformer()
Creates a new identity transformer.static TransformerFactory
newTransformerFactory(boolean disableSecurity)
static XMLInputFactory
newXMLInputFactory(boolean disableSecurity)
static XPathFactory
newXPathFactory(boolean disableSecurity)
static List<String>
parseTokenList(String tokenList)
-
-
-
Field Detail
-
DRACONIAN_ERROR_HANDLER
public static final ErrorHandler DRACONIAN_ERROR_HANDLER
ErrorHandler
that always treat the error as fatal.
-
-
Method Detail
-
getAttributeNSOrNull
public static String getAttributeNSOrNull(Element e, String name, String nsURI)
-
getUTF8Stream
public static InputStream getUTF8Stream(String s)
-
newTransformer
public static Transformer newTransformer()
Creates a new identity transformer.- Returns:
-
identityTransform
public static <T extends Result> T identityTransform(Source src, T result) throws TransformerException, SAXException, ParserConfigurationException, IOException
Performs identity transformation.- Type Parameters:
T
-- Parameters:
src
-result
-- Returns:
- Throws:
TransformerException
IOException
SAXException
ParserConfigurationException
-
createEntityResolver
public static EntityResolver createEntityResolver(@Nullable URL catalogUrl)
Gets an EntityResolver using XML catalog- Parameters:
catalogUrl
-- Returns:
-
createDefaultCatalogResolver
public static EntityResolver createDefaultCatalogResolver()
Gets a default EntityResolver for catalog at META-INF/jaxws-catalog.xml- Returns:
-
newDocumentBuilderFactory
public static DocumentBuilderFactory newDocumentBuilderFactory(boolean disableSecurity)
-
newTransformerFactory
public static TransformerFactory newTransformerFactory(boolean disableSecurity)
-
newSAXParserFactory
public static SAXParserFactory newSAXParserFactory(boolean disableSecurity)
-
newXPathFactory
public static XPathFactory newXPathFactory(boolean disableSecurity)
-
newXMLInputFactory
public static XMLInputFactory newXMLInputFactory(boolean disableSecurity)
-
allowExternalAccess
public static SchemaFactory allowExternalAccess(SchemaFactory sf, String value, boolean disableSecurity)
-
-