org.apache.axis2.soap.impl.llom
Class SOAPMessageImpl

java.lang.Object
  extended byorg.apache.axis2.om.impl.llom.OMDocumentImpl
      extended byorg.apache.axis2.soap.impl.llom.SOAPMessageImpl
All Implemented Interfaces:
OMContainer, OMContainerEx, OMDocument, SOAPMessage

public class SOAPMessageImpl
extends OMDocumentImpl
implements SOAPMessage


Field Summary
 
Fields inherited from class org.apache.axis2.om.impl.llom.OMDocumentImpl
charSetEncoding, done, firstChild, isStandalone, lastChild, parserWrapper, rootElement, xmlVersion
 
Fields inherited from interface org.apache.axis2.om.OMDocument
XML_10, XML_11
 
Constructor Summary
SOAPMessageImpl()
           
SOAPMessageImpl(OMXMLParserWrapper parserWrapper)
           
SOAPMessageImpl(SOAPEnvelope envelope, OMXMLParserWrapper parserWrapper)
           
 
Method Summary
 void addChild(OMNode child)
          This will add child to the element.
 SOAPEnvelope getSOAPEnvelope()
           
protected  void serialize(OMOutputImpl omOutput, boolean cache, boolean includeXMLDeclaration)
           
 void setDocumentElement(OMElement rootElement)
          Sets the document element of the XML document
 void setFirstChild(OMNode firstChild)
          Method setFirstChild
 void setSOAPEnvelope(SOAPEnvelope envelope)
           
 
Methods inherited from class org.apache.axis2.om.impl.llom.OMDocumentImpl
buildNext, getCharsetEncoding, getChildren, getChildrenWithName, getDocumentElement, getFirstChild, getFirstChildWithName, getXMLVersion, isComplete, isStandalone, serialize, serialize, serializeWithCache, serializeWithCache, setCharsetEncoding, setComplete, setStandalone, setXMLVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.axis2.om.OMDocument
getCharsetEncoding, getDocumentElement, getXMLVersion, isStandalone, serialize, serialize, serializeWithCache, serializeWithCache, setCharsetEncoding, setStandalone, setXMLVersion
 
Methods inherited from interface org.apache.axis2.om.OMContainer
buildNext, getChildren, getChildrenWithName, getFirstChild, getFirstChildWithName, isComplete
 

Constructor Detail

SOAPMessageImpl

public SOAPMessageImpl()

SOAPMessageImpl

public SOAPMessageImpl(SOAPEnvelope envelope,
                       OMXMLParserWrapper parserWrapper)

SOAPMessageImpl

public SOAPMessageImpl(OMXMLParserWrapper parserWrapper)
Method Detail

getSOAPEnvelope

public SOAPEnvelope getSOAPEnvelope()
                             throws SOAPProcessingException
Specified by:
getSOAPEnvelope in interface SOAPMessage
Throws:
SOAPProcessingException

setSOAPEnvelope

public void setSOAPEnvelope(SOAPEnvelope envelope)
                     throws SOAPProcessingException
Specified by:
setSOAPEnvelope in interface SOAPMessage
Throws:
SOAPProcessingException

setDocumentElement

public void setDocumentElement(OMElement rootElement)
Description copied from interface: OMDocument
Sets the document element of the XML document

Specified by:
setDocumentElement in interface OMDocument
Overrides:
setDocumentElement in class OMDocumentImpl
Parameters:
rootElement -

addChild

public void addChild(OMNode child)
Description copied from class: OMDocumentImpl
This will add child to the element. One can decide whether he append the child or he adds to the front of the children list

Specified by:
addChild in interface OMContainer
Overrides:
addChild in class OMDocumentImpl
Parameters:
child -

setFirstChild

public void setFirstChild(OMNode firstChild)
Description copied from class: OMDocumentImpl
Method setFirstChild

Specified by:
setFirstChild in interface OMContainerEx
Overrides:
setFirstChild in class OMDocumentImpl
Parameters:
firstChild -

serialize

protected void serialize(OMOutputImpl omOutput,
                         boolean cache,
                         boolean includeXMLDeclaration)
                  throws XMLStreamException
Overrides:
serialize in class OMDocumentImpl
Throws:
XMLStreamException