|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ws.pox.dom.DomPoxMessage
public class DomPoxMessage
Implementation of the PoxMessage
interface that is based on a DOM Document.
Document
Constructor Summary | |
---|---|
DomPoxMessage(Document document,
Transformer transformer,
String contentType)
Constructs a new instance of the DomPoxMessage with the given document. |
Method Summary | |
---|---|
Document |
getDocument()
Returns the document underlying this message. |
String |
getFaultReason()
|
Result |
getPayloadResult()
Returns the contents of the message as a Result . |
Source |
getPayloadSource()
Returns the contents of the message as a Source . |
boolean |
hasFault()
|
String |
toString()
|
void |
writeTo(OutputStream outputStream)
Writes the entire message to the given output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DomPoxMessage(Document document, Transformer transformer, String contentType)
DomPoxMessage
with the given document.
document
- the document to base the message onMethod Detail |
---|
public Document getDocument()
public Result getPayloadResult()
WebServiceMessage
Result
.
Calling this method removes the current payload.
Implementations that are read-only will throw an UnsupportedOperationException
.
getPayloadResult
in interface WebServiceMessage
public Source getPayloadSource()
WebServiceMessage
Source
. Depending on the implementation, this can be retrieved multiple times, or just a single time.
getPayloadSource
in interface WebServiceMessage
public boolean hasFault()
public String getFaultReason()
public String toString()
toString
in class Object
public void writeTo(OutputStream outputStream) throws IOException
WebServiceMessage
If the given stream is an instance of TransportOutputStream
, the corresponding headers will be written as well.
writeTo
in interface WebServiceMessage
outputStream
- the stream to write to
IOException
- if an I/O exception occurs
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |