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 theDomPoxMessage
with 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
.boolean
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 implementFaultAwareWebServiceMessage
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
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 implementFaultAwareWebServiceMessage
Does this message have a fault?- Returns:
true
if 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 implementFaultAwareWebServiceMessage
Returns the fault reason message.- Returns:
- the fault reason message, if any; returns
null
when no fault is present
-
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
-
FaultAwareWebServiceMessage