Package de.codecentric.cxf.common
Class XmlUtils
- java.lang.Object
-
- de.codecentric.cxf.common.XmlUtils
-
public final class XmlUtils extends Object
Utilities to work with JAX-B and SOAP/XML.- Author:
- Jonas Hecht
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ElementappendAsChildElement2NewElement(Document document)static <T> StringgetNamespaceUriFromJaxbClass(Class<T> jaxbClass)static <T> StringgetSoapActionFromJaxWsServiceInterface(Class<T> jaxWsServiceInterfaceClass)static <T> StringgetSoapActionFromJaxWsServiceInterface(Class<T> jaxWsServiceInterfaceClass, String jaxWsServiceInvokedMethodName)static <T> TgetUnmarshalledObjectFromSoapMessage(Document httpBody, Class<T> jaxbClass)static <T> StringgetXmlTagNameFromJaxbClass(Class<T> jaxbClass)static DocumentmarhallJaxbElement(Object jaxbElement)static DocumentparseFileStream2Document(InputStream contentAsStream)static <T> TreadSoapMessageFromStreamAndUnmarshallBody2Object(InputStream fileStream, Class<T> jaxbClass)static <T> javax.xml.bind.JAXBElement<T>unmarshallNode(Node node, Class<T> jaxbClassName)static <T> TunmarshallXMLString(String xml, Class<T> jaxbClass)
-
-
-
Method Detail
-
readSoapMessageFromStreamAndUnmarshallBody2Object
public static <T> T readSoapMessageFromStreamAndUnmarshallBody2Object(InputStream fileStream, Class<T> jaxbClass) throws BootStarterCxfException
- Throws:
BootStarterCxfException
-
getUnmarshalledObjectFromSoapMessage
public static <T> T getUnmarshalledObjectFromSoapMessage(Document httpBody, Class<T> jaxbClass) throws BootStarterCxfException
- Throws:
BootStarterCxfException
-
unmarshallNode
public static <T> javax.xml.bind.JAXBElement<T> unmarshallNode(Node node, Class<T> jaxbClassName) throws BootStarterCxfException
- Throws:
BootStarterCxfException
-
getNamespaceUriFromJaxbClass
public static <T> String getNamespaceUriFromJaxbClass(Class<T> jaxbClass) throws BootStarterCxfException
- Throws:
BootStarterCxfException
-
getSoapActionFromJaxWsServiceInterface
public static <T> String getSoapActionFromJaxWsServiceInterface(Class<T> jaxWsServiceInterfaceClass, String jaxWsServiceInvokedMethodName) throws BootStarterCxfException
- Throws:
BootStarterCxfException
-
getSoapActionFromJaxWsServiceInterface
public static <T> String getSoapActionFromJaxWsServiceInterface(Class<T> jaxWsServiceInterfaceClass) throws BootStarterCxfException
- Throws:
BootStarterCxfException
-
parseFileStream2Document
public static Document parseFileStream2Document(InputStream contentAsStream) throws BootStarterCxfException
- Throws:
BootStarterCxfException
-
marhallJaxbElement
public static Document marhallJaxbElement(Object jaxbElement) throws BootStarterCxfException
- Throws:
BootStarterCxfException
-
appendAsChildElement2NewElement
public static Element appendAsChildElement2NewElement(Document document) throws BootStarterCxfException
- Throws:
BootStarterCxfException
-
-