|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.javacrumbs.smock.common.XmlUtil
public class XmlUtil
Helper class for work with XML.
| Field Summary | |
|---|---|
static Charset |
UTF8_CHARSET
|
| Method Summary | |
|---|---|
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)
Converts Source to String. |
static void |
transform(Source source,
Result result)
Does transofrmation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Charset UTF8_CHARSET
| Method Detail |
|---|
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 String serialize(Source source)
Source to String.
source -
public static void transform(Source source,
Result result)
source - result - public static InputStream getDocumentAsStream(Document document)
document -
public static InputStream getSourceAsStream(Source source)
document -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||