|
||||||||||
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.SOAPBodyImpl
public abstract class SOAPBodyImpl
Class SOAPBodyImpl
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 | |
---|---|
|
SOAPBodyImpl(SOAPEnvelope envelope,
OMXMLParserWrapper builder,
SOAPFactory factory)
Constructor SOAPBodyImpl |
|
SOAPBodyImpl(SOAPEnvelope envelope,
SOAPFactory factory)
|
protected |
SOAPBodyImpl(String localName,
OMNamespace ns,
SOAPFactory factory)
|
Method Summary | |
---|---|
void |
addChild(OMNode child)
Adds child to the element. |
abstract SOAPFault |
addFault(Exception e)
Creates a new SOAPFault object and adds it to this SOAPBody
object. |
void |
addFault(SOAPFault soapFault)
|
void |
buildNext()
Forces the parser to proceed, if parser has not yet finished with the XML input. |
protected void |
checkParent(OMElement parent)
This has to be implemented by all the derived classes to check for the correct parent. |
OMNode |
detach()
Removes this information item and its children, from the model completely. |
SOAPFault |
getFault()
Returns the SOAPFault object in this SOAPBody object. |
String |
getFirstElementLocalName()
Retrieves the local name of the first element in the body. |
OMNamespace |
getFirstElementNS()
Retrieves the OMNamespace of the first element in the body. |
boolean |
hasFault()
Indicates whether a SOAPFault object exists in this SOAPBody
object. |
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 |
---|
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 |
---|
protected SOAPBodyImpl(String localName, OMNamespace ns, SOAPFactory factory)
public SOAPBodyImpl(SOAPEnvelope envelope, SOAPFactory factory) throws SOAPProcessingException
envelope
-
SOAPProcessingException
public SOAPBodyImpl(SOAPEnvelope envelope, OMXMLParserWrapper builder, SOAPFactory factory)
envelope
- builder
- Method Detail |
---|
public abstract SOAPFault addFault(Exception e) throws OMException
SOAPFault
object and adds it to this SOAPBody
object.
addFault
in interface SOAPBody
e
-
SOAPFault
object
OMException
- if there is a SOAP error
OMException
public boolean hasFault()
SOAPFault
object exists in this SOAPBody
object.
hasFault
in interface SOAPBody
true
if a SOAPFault
object exists in this
SOAPBody
object; false
otherwisepublic SOAPFault getFault()
SOAPFault
object in this SOAPBody
object.
getFault
in interface SOAPBody
SOAPFault
object in this SOAPBody
objectpublic void addFault(SOAPFault soapFault) throws OMException
addFault
in interface SOAPBody
soapFault
-
OMException
OMException
protected void checkParent(OMElement parent) throws SOAPProcessingException
SOAPElement
checkParent
in class SOAPElement
SOAPProcessingException
public OMNode detach() throws OMException
OMElementImpl
detach
in interface OMNode
detach
in class OMElementImpl
OMException
- If a node is not complete, the detach can trigger further parsing, which may
cause an exception.public void buildNext()
OMElementImpl
buildNext
in interface OMContainer
buildNext
in class OMElementImpl
public OMNamespace getFirstElementNS()
SOAPBody
getFirstElementNS
in interface SOAPBody
public String getFirstElementLocalName()
SOAPBody
getFirstElementLocalName
in interface SOAPBody
public void addChild(OMNode child)
OMElementImpl
addChild
in interface OMContainer
addChild
in class OMElementImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |