|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.llom.OMSerializableImpl
org.apache.axiom.om.impl.llom.OMNodeImpl
org.apache.axiom.om.impl.llom.OMElementImpl
org.apache.axiom.soap.impl.llom.SOAPElement
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl
public class SOAPEnvelopeImpl
Class SOAPEnvelopeImpl
Field Summary |
---|
Fields inherited from class org.apache.axiom.om.impl.llom.OMElementImpl |
---|
attributes, DEFAULT_DEFAULT_NS_OBJECT, firstChild, lastChild, localName, namespaces, noPrefixNamespaceCounter, ns, qName |
Fields inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
---|
nextSibling, nodeType, parent, previousSibling |
Fields inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl |
---|
builder, done, factory |
Fields inherited from interface org.apache.axiom.om.OMNode |
---|
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE |
Constructor Summary | |
---|---|
SOAPEnvelopeImpl(OMNamespace ns,
SOAPFactory factory)
Constructor |
|
SOAPEnvelopeImpl(OMXMLParserWrapper builder,
SOAPFactory factory)
Constructor |
Method Summary | |
---|---|
void |
addChild(OMNode child)
Add a SOAPHeader or SOAPBody object |
protected void |
checkParent(OMElement parent)
This has to be implemented by all the derived classes to check for the correct parent. |
OMNode |
detach()
Method detach |
SOAPBody |
getBody()
Returns the SOAPBody object associated with this SOAPEnvelope
object. |
SOAPHeader |
getHeader()
Returns the SOAPHeader object for this SOAPEnvelope object. |
String |
getSOAPBodyFirstElementLocalName()
Retrieves the local name of the first element in the body. |
OMNamespace |
getSOAPBodyFirstElementNS()
Retrieves the OMNamespace of the first element in the body. |
SOAPVersion |
getVersion()
|
boolean |
hasFault()
Returns true if there is a SOAPFault in the body. |
void |
internalSerialize(XMLStreamWriter writer2,
boolean cache)
Serializes the node. |
Methods inherited from class org.apache.axiom.soap.impl.llom.SOAPElement |
---|
registerContentHandler, setParent |
Methods inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
---|
getNextOMSiblingIfAvailable, getParent, getPreviousOMSibling, importNode, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, setComplete, setNextOMSibling, setPreviousOMSibling, setType |
Methods inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl |
---|
close, getOMFactory, isComplete, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.axiom.om.OMNode |
---|
buildWithAttachments, discard, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore |
Methods inherited from interface org.apache.axiom.om.OMContainer |
---|
buildNext, getBuilder, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getFirstChildWithName, getFirstOMChild, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching |
Methods inherited from interface org.apache.axiom.om.OMSerializable |
---|
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume |
Methods inherited from interface org.apache.axiom.om.impl.OMContainerEx |
---|
setComplete |
Constructor Detail |
---|
public SOAPEnvelopeImpl(OMXMLParserWrapper builder, SOAPFactory factory)
builder
- the OMXMLParserWrapper building this envelopefactory
- the SOAPFactory building this envelopepublic SOAPEnvelopeImpl(OMNamespace ns, SOAPFactory factory)
ns
- OMNamespace for this envelopefactory
- SOAPFactory associated with this envelopeMethod Detail |
---|
public SOAPVersion getVersion()
getVersion
in interface SOAPEnvelope
public SOAPHeader getHeader() throws OMException
SOAPHeader
object for this SOAPEnvelope
object.
This SOAPHeader will just be a container for all the headers in the OMMessage
getHeader
in interface SOAPEnvelope
SOAPHeader
object or null
if there is none
OMException
- if there is a problem obtaining the SOAPHeader
objectpublic void addChild(OMNode child)
addChild
in interface OMContainer
addChild
in class OMElementImpl
child
- an OMNode to add - must be either a SOAPHeader or a SOAPBodypublic SOAPBody getBody() throws OMException
SOAPBody
object associated with this SOAPEnvelope
object. This SOAPBody will just be a container for all the BodyElements in the
OMMessage
getBody
in interface SOAPEnvelope
SOAPBody
object for this SOAPEnvelope
object or
null
if there is none
OMException
- if there is a problem obtaining the SOAPBody
objectpublic OMNode detach() throws OMException
detach
in interface OMNode
detach
in class OMElementImpl
OMException
protected void checkParent(OMElement parent) throws SOAPProcessingException
SOAPElement
checkParent
in class SOAPElement
SOAPProcessingException
public void internalSerialize(XMLStreamWriter writer2, boolean cache) throws XMLStreamException
OMSerializableImpl
internalSerialize
in interface OMNodeEx
internalSerialize
in class OMElementImpl
cache
- indicates if caching should be enabled
XMLStreamException
public boolean hasFault()
SOAPEnvelope
hasFault
in interface SOAPEnvelope
public String getSOAPBodyFirstElementLocalName()
SOAPEnvelope
getSOAPBodyFirstElementLocalName
in interface SOAPEnvelope
public OMNamespace getSOAPBodyFirstElementNS()
SOAPEnvelope
getSOAPBodyFirstElementNS
in interface SOAPEnvelope
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |