public class DefaultXmlPayloadConverter extends Object implements XmlPayloadConverter
XmlPayloadConverter
. Supports
Document
, File
, String
, Node
and
DOMSource
payloads.Constructor and Description |
---|
DefaultXmlPayloadConverter() |
DefaultXmlPayloadConverter(DocumentBuilderFactory documentBuilderFactory) |
Modifier and Type | Method and Description |
---|---|
Document |
convertToDocument(Object object) |
Node |
convertToNode(Object object) |
Source |
convertToSource(Object object) |
protected DocumentBuilder |
getDocumentBuilder() |
protected Document |
nodeToDocument(Node node) |
public DefaultXmlPayloadConverter()
public DefaultXmlPayloadConverter(DocumentBuilderFactory documentBuilderFactory)
public Document convertToDocument(Object object)
convertToDocument
in interface XmlPayloadConverter
public Node convertToNode(Object object)
convertToNode
in interface XmlPayloadConverter
public Source convertToSource(Object object)
convertToSource
in interface XmlPayloadConverter
protected DocumentBuilder getDocumentBuilder()