public class XmlUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
getDocumentAsStream(Document document)
Streams the document as UTF-8 encoded stream.
|
static Source |
getEnvelopeSource(org.springframework.ws.WebServiceMessage message)
Returns source of message envelope
|
static InputStream |
getSourceAsStream(Source source)
Streams the source as UTF-8 encoded stream.
|
static boolean |
isSoap(Source source)
Returns true if the documents root is SOAP envelope.
|
static Document |
loadDocument(Source source)
Loads document from source.
|
static String |
serialize(Document document)
Converts
document to String. |
static String |
serialize(Source source)
|
static byte[] |
stringToBytes(String string) |
static void |
transform(Source source,
Result result)
Does transofrmation.
|
public static Document loadDocument(Source source)
source - public static boolean isSoap(Source source)
document - public static String serialize(Document document)
document to String.document - public static Source getEnvelopeSource(org.springframework.ws.WebServiceMessage message)
message - public static void transform(Source source, Result result)
source - result - public static InputStream getDocumentAsStream(Document document)
document - public static InputStream getSourceAsStream(Source source)
document - public static byte[] stringToBytes(String string)
Copyright © 2017. All Rights Reserved.