com.jmrosengard.xmlbroker.soapipr
Class Message

java.lang.Object
  |
  +--com.jmrosengard.xmlbroker.soapipr.Message
Direct Known Subclasses:
ReqMsg, RespMsg

public abstract class Message
extends java.lang.Object

Build a SOAP message as a DOM tree, allow subsclasses to add elements to the tree, and serialise the tree into a PirintWriter.


Field Summary
protected  org.w3c.dom.Element body
           
protected  org.w3c.dom.Document doc
           
protected  org.w3c.dom.Element meth
           
private  java.io.PrintWriter outBuf
           
protected  org.w3c.dom.Element param
           
protected  org.w3c.dom.Element root
           
protected static java.lang.String SOAP_ENC_URI
           
protected static java.lang.String SOAP_ENV_NS_URI
           
protected static java.lang.String XB_NS_URI_BASE
           
protected static java.lang.String XML_NS_URI
           
 
Constructor Summary
Message(java.io.PrintWriter outBuf)
           
 
Method Summary
 void build()
          Create the generic parts of the message and delegate the specific parts to the hook method of the different subclasses.
protected abstract  void doContent()
          Hook method (See Template Pattern in [Gamma,E.
protected  void serialise(org.w3c.dom.Node node)
          Serialise the SOAP message's DOM tree into a stream.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

SOAP_ENV_NS_URI

protected static final java.lang.String SOAP_ENV_NS_URI

SOAP_ENC_URI

protected static final java.lang.String SOAP_ENC_URI

XML_NS_URI

protected static final java.lang.String XML_NS_URI

XB_NS_URI_BASE

protected static final java.lang.String XB_NS_URI_BASE

outBuf

private java.io.PrintWriter outBuf

doc

protected org.w3c.dom.Document doc

root

protected org.w3c.dom.Element root

body

protected org.w3c.dom.Element body

meth

protected org.w3c.dom.Element meth

param

protected org.w3c.dom.Element param
Constructor Detail

Message

public Message(java.io.PrintWriter outBuf)
Method Detail

doContent

protected abstract void doContent()
Hook method (See Template Pattern in [Gamma,E. & al. 1995]) that generates the actual SOAP message content.

build

public void build()
Create the generic parts of the message and delegate the specific parts to the hook method of the different subclasses.

serialise

protected void serialise(org.w3c.dom.Node node)
Serialise the SOAP message's DOM tree into a stream.