|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjimm.twice.ice.xml.SoapEnvelope
ICE messages are delivered inside SOAP envelopes. The SOAP header contains an ICE message header and the body contains delivery, subscribe, and fault messages.
To retrieve a SOAP envelope as XML call toString
.
MessageHeader
,
Delivery
,
Subscribe
,
Fault
Field Summary | |
protected Node |
bodyNode
|
protected Document |
document
|
protected Node |
headerNode
|
Constructor Summary | |
SoapEnvelope()
Creates an empty SOAP envelope. |
|
SoapEnvelope(Header header)
Creates a SOAP envelope containing a header and an empty body. |
|
SoapEnvelope(Header header,
Message body)
Creates a SOAP envelope containing an ICE message. |
|
SoapEnvelope(IceMachine sender)
Creates a SOAP envelope containing a header and an empty body. |
|
SoapEnvelope(IceMachine sender,
Message body)
Creates a SOAP envelope containing a header and body. |
Method Summary | |
boolean |
containsFault()
|
Node |
getBodyNode()
|
Node |
getHeaderNode()
|
Tag |
getHeaderTag()
|
Message |
setBody(Message msg)
|
Header |
setHeader(Header header)
|
java.lang.String |
toString()
Returns the XML representation of the payload. |
void |
writeTo(java.io.OutputStream out)
Writes the payload to a writer stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Document document
protected Node headerNode
protected Node bodyNode
Constructor Detail |
public SoapEnvelope()
public SoapEnvelope(IceMachine sender)
sender
- the ICE machine sending the messagepublic SoapEnvelope(IceMachine sender, Message body)
sender
- the ICE machine sending the messagebody
- the bodypublic SoapEnvelope(Header header)
header
- the headerpublic SoapEnvelope(Header header, Message body)
header
- the headerbody
- the bodyMethod Detail |
public boolean containsFault()
public Tag getHeaderTag()
public Node getHeaderNode()
public Node getBodyNode()
public Header setHeader(Header header)
public Message setBody(Message msg)
public void writeTo(java.io.OutputStream out) throws java.io.IOException
out
- the output writer
java.io.IOException
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |