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
- 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.Deprecated, for removal: This API element is subject to removal in a future version.Returns the contents of the message as aResult.Returns the contents of the message as aSource.booleanhasFault()Deprecated, for removal: This API element is subject to removal in a future version.as of 4.0.12 with no replacement as this class does not implementFaultAwareWebServiceMessagetoString()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
-
hasFault
Deprecated, for removal: This API element is subject to removal in a future version.as of 4.0.12 with no replacement as this class does not implementFaultAwareWebServiceMessageDoes this message have a fault?- Returns:
trueif the message has a fault
-
getFaultReason
Deprecated, for removal: This API element is subject to removal in a future version.as of 4.0.12 with no replacement as this class does not implementFaultAwareWebServiceMessageReturns the fault reason message.- Returns:
- the fault reason message, if any; returns
nullwhen no fault is present
-
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
-
FaultAwareWebServiceMessage