Package org.springframework.ws.pox.dom
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
- Author:
- Arjen Poutsma
- See Also:
-
Constructor Summary
ConstructorDescriptionDomPoxMessage
(Document document, Transformer transformer, String contentType) Constructs a new instance of theDomPoxMessage
with 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
.boolean
hasFault()
toString()
void
writeTo
(OutputStream outputStream) Writes the entire message to the given output stream.
-
Constructor Details
-
DomPoxMessage
Constructs a new instance of theDomPoxMessage
with 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:WebServiceMessage
Returns 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:
getPayloadResult
in interfaceWebServiceMessage
- Returns:
- the message contents
-
getPayloadSource
Description copied from interface:WebServiceMessage
Returns the contents of the message as aSource
.Depending on the implementation, this can be retrieved multiple times, or just a single time.
- Specified by:
getPayloadSource
in interfaceWebServiceMessage
- Returns:
- the message contents
-
hasFault
public boolean hasFault() -
getFaultReason
-
toString
-
writeTo
Description copied from interface:WebServiceMessage
Writes 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:
writeTo
in interfaceWebServiceMessage
- Parameters:
outputStream
- the stream to write to- Throws:
IOException
- if an I/O exception occurs
-