|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 |
|---|
builder, done, factory, nextSibling, nodeType, parent, previousSibling |
| 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. |
java.lang.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. |
protected void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer2,
boolean cache)
|
| Methods inherited from class org.apache.axiom.soap.impl.llom.SOAPElement |
|---|
registerContentHandler, setParent |
| Methods inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
|---|
close, getOMFactory, getParent, getPreviousOMSibling, importNode, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setPreviousOMSibling, setType |
| 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 |
|---|
build, buildWithAttachments, close, discard, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
| Methods inherited from interface org.apache.axiom.om.OMContainer |
|---|
buildNext, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getFirstChildWithName, getFirstOMChild, isComplete |
| 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 envelope
public SOAPEnvelopeImpl(OMNamespace ns,
SOAPFactory factory)
ns - OMNamespace for this envelopefactory - SOAPFactory associated with this envelope| Method 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 SOAPEnvelopeSOAPHeader object or null if there is none
OMException - if there is a problem obtaining the SOAPHeader objectpublic void addChild(OMNode child)
addChild in interface OMContaineraddChild in class OMElementImplchild - an OMNode to add - must be either a SOAPHeader or a SOAPBody
public 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 SOAPEnvelopeSOAPBody object for this SOAPEnvelope object or
null if there is none
OMException - if there is a problem obtaining the SOAPBody object
public OMNode detach()
throws OMException
detach in interface OMNodedetach in class OMElementImplOMException
protected void checkParent(OMElement parent)
throws SOAPProcessingException
SOAPElement
checkParent in class SOAPElementSOAPProcessingException
protected void internalSerialize(javax.xml.stream.XMLStreamWriter writer2,
boolean cache)
throws javax.xml.stream.XMLStreamException
internalSerialize in class OMElementImpljavax.xml.stream.XMLStreamExceptionpublic boolean hasFault()
SOAPEnvelope
hasFault in interface SOAPEnvelopepublic java.lang.String getSOAPBodyFirstElementLocalName()
SOAPEnvelope
getSOAPBodyFirstElementLocalName in interface SOAPEnvelopepublic OMNamespace getSOAPBodyFirstElementNS()
SOAPEnvelope
getSOAPBodyFirstElementNS in interface SOAPEnvelope
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||