Class DomPoxMessage
java.lang.Object
org.springframework.ws.pox.dom.DomPoxMessage
- All Implemented Interfaces:
PoxMessage, WebServiceMessage
Implementation of the
PoxMessage interface that is based on a DOM Document.- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDomPoxMessage(Document document, Transformer transformer, String contentType) Constructs a new instance of theDomPoxMessagewith the given document. -
Method Summary
Modifier and TypeMethodDescriptionReturns the document underlying this message.Returns the contents of the message as aResult.Returns the contents of the message as aSource.toString()voidwriteTo(OutputStream outputStream) Writes the entire message to the given output stream.
-
Constructor Details
-
DomPoxMessage
Constructs a new instance of theDomPoxMessagewith the given document.- Parameters:
document- the document to base the message on
-
-
Method Details
-
getDocument
Returns the document underlying this message. -
getPayloadResult
Description copied from interface:WebServiceMessageReturns the contents of the message as aResult.Calling this method removes the current payload.
Implementations that are read-only will throw an
UnsupportedOperationException.- Specified by:
getPayloadResultin interfaceWebServiceMessage- Returns:
- the message contents
-
getPayloadSource
Description copied from interface:WebServiceMessageReturns the contents of the message as aSource.Depending on the implementation, this can be retrieved multiple times, or just a single time.
- Specified by:
getPayloadSourcein interfaceWebServiceMessage- Returns:
- the message contents
-
toString
-
writeTo
Description copied from interface:WebServiceMessageWrites the entire message to the given output stream.If the given stream is an instance of
TransportOutputStream, the corresponding headers will be written as well.- Specified by:
writeToin interfaceWebServiceMessage- Parameters:
outputStream- the stream to write to- Throws:
IOException- if an I/O exception occurs
-