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 ErrorHandlerDRACONIAN_ERROR_HANDLERErrorHandlerthat 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 SchemaFactoryallowExternalAccess(SchemaFactory sf, String value, boolean disableSecurity)static EntityResolvercreateDefaultCatalogResolver()Gets a default EntityResolver for catalog at META-INF/jaxws-catalog.xmlstatic EntityResolvercreateEntityResolver(URL catalogUrl)Gets an EntityResolver using XML catalogstatic IteratorgetAllAttributes(Element element)static IteratorgetAllChildren(Element element)static StringgetAttributeNSOrNull(Element e, String name, String nsURI)static StringgetAttributeNSOrNull(Element e, QName name)static StringgetAttributeOrNull(Element e, String name)static StringgetLocalPart(String s)static StringgetPrefix(String s)static StringgetTextForNode(Node node)static InputStreamgetUTF8Stream(String s)static <T extends Result>
TidentityTransform(Source src, T result)Performs identity transformation.static DocumentBuilderFactorynewDocumentBuilderFactory(boolean disableSecurity)static SAXParserFactorynewSAXParserFactory(boolean disableSecurity)static TransformernewTransformer()Creates a new identity transformer.static TransformerFactorynewTransformerFactory(boolean disableSecurity)static XMLInputFactorynewXMLInputFactory(boolean disableSecurity)static XPathFactorynewXPathFactory(boolean disableSecurity)static List<String>parseTokenList(String tokenList)
-
-
-
Field Detail
-
DRACONIAN_ERROR_HANDLER
public static final ErrorHandler DRACONIAN_ERROR_HANDLER
ErrorHandlerthat 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:
TransformerExceptionIOExceptionSAXExceptionParserConfigurationException
-
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)
-
-