|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.message.MessageElement | +--org.apache.axis.message.SOAPBody
Holder for body elements.
Nested Class Summary |
Nested classes inherited from class org.apache.axis.message.MessageElement |
MessageElement.QNameAttr |
Field Summary |
Fields inherited from class org.apache.axis.message.MessageElement |
_isDirty, _isRoot, attributes, context, elementRep, encodingStyle, endEventIndex, href, id, log, message, name, namespaces, namespaceURI, parent, prefix, qNameAttrs, recorder, startContentsIndex, startEventIndex, textRep, typeQName |
Constructor Summary | |
SOAPBody(java.lang.String namespace,
java.lang.String localPart,
java.lang.String prefix,
org.xml.sax.Attributes attributes,
DeserializationContext context,
SOAPConstants soapConsts)
|
Method Summary | |
SOAPBodyElement |
addBodyElement(Name name)
Creates a new SOAPBodyElement object with the
specified name and adds it to this SOAPBody object. |
void |
addChild(MessageElement el)
Note that this method will log a error and no-op if there is a value (set using setObjectValue) in the MessageElement. |
SOAPElement |
addChildElement(SOAPElement element)
we have to override this to enforce that SOAPHeader immediate children are exclusively of type SOAPHeaderElement (otherwise we'll get mysterious ClassCastExceptions down the road...) |
SOAPFault |
addFault()
Creates a new SOAPFault object and adds it to
this SOAPBody object. |
void |
detachNode()
Removes this Node object from the tree. |
void |
disableFormatting()
|
protected MessageElement |
findElement(java.util.Vector vec,
java.lang.String namespace,
java.lang.String localPart)
|
java.util.Iterator |
getChildElements()
Returns an iterator over all the immediate content of this element. |
java.util.Iterator |
getChildElements(Name name)
Returns an iterator over all the child elements with the specified name. |
SOAPFault |
getFault()
Returns the SOAPFault object in this SOAPBody
object. |
boolean |
hasFault()
Indicates whether a SOAPFault object exists in
this SOAPBody object. |
protected void |
outputImpl(SerializationContext context)
Subclasses can override |
void |
removeChild(MessageElement child)
Remove a child element. |
void |
setEncodingStyle(java.lang.String encodingStyle)
Sets the encoding style for this SOAPElement
object to one specified. |
void |
setParentElement(SOAPElement parent)
Sets the parent of this Node object to the given
SOAPElement object. |
void |
setSAAJEncodingCompliance(boolean comply)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.xml.soap.SOAPElement |
addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, getAllAttributes, getAttributeValue, getElementName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, removeAttribute, removeNamespaceDeclaration |
Methods inherited from interface javax.xml.soap.Node |
getParentElement, getValue, recycleNode |
Constructor Detail |
public SOAPBody(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix, org.xml.sax.Attributes attributes, DeserializationContext context, SOAPConstants soapConsts) throws AxisFault
Method Detail |
public void setParentElement(SOAPElement parent) throws SOAPException
Node
Node
object to the given
SOAPElement
object.
setParentElement
in interface Node
setParentElement
in class MessageElement
parent
- the SOAPElement
object to be set as
the parent of this Node
object
SOAPException
- if there is a problem in setting the
parent to the given elementgetParentElement()
public void detachNode()
Node
Node
object from the tree. Once
removed, this node can be garbage collected if there are no
application references to it.
detachNode
in interface Node
detachNode
in class MessageElement
public void disableFormatting()
public void setEncodingStyle(java.lang.String encodingStyle) throws SOAPException
SOAPElement
SOAPElement
object to one specified.
setEncodingStyle
in interface SOAPElement
setEncodingStyle
in class MessageElement
encodingStyle
- a String
giving the encoding style
SOAPException
getEncodingStyle()
protected void outputImpl(SerializationContext context) throws java.lang.Exception
MessageElement
outputImpl
in class MessageElement
java.lang.Exception
protected MessageElement findElement(java.util.Vector vec, java.lang.String namespace, java.lang.String localPart)
public SOAPBodyElement addBodyElement(Name name) throws SOAPException
SOAPBody
SOAPBodyElement
object with the
specified name and adds it to this SOAPBody
object.
addBodyElement
in interface SOAPBody
name
- a Name
object with the name for the new
SOAPBodyElement
object
SOAPBodyElement
object
SOAPException
- if a SOAP error occurspublic SOAPFault addFault() throws SOAPException
SOAPBody
SOAPFault
object and adds it to
this SOAPBody
object.
addFault
in interface SOAPBody
SOAPFault
object
SOAPException
- if there is a SOAP errorpublic SOAPFault getFault()
SOAPBody
SOAPFault
object in this SOAPBody
object.
getFault
in interface SOAPBody
SOAPFault
object in this SOAPBody
objectpublic boolean hasFault()
SOAPBody
SOAPFault
object exists in
this SOAPBody
object.
hasFault
in interface SOAPBody
true
if a SOAPFault
object exists in
this SOAPBody
object; false
otherwisepublic void addChild(MessageElement el) throws SOAPException
MessageElement
addChild
in class MessageElement
SOAPException
public java.util.Iterator getChildElements()
SOAPElement
Text
objects as well
as SOAPElement
objects.
getChildElements
in interface SOAPElement
getChildElements
in class MessageElement
SOAPElement
objectpublic java.util.Iterator getChildElements(Name name)
SOAPElement
getChildElements
in interface SOAPElement
getChildElements
in class MessageElement
name
- a Name
object with
the name of the child elements to be returned
Iterator
object over all the elements
in this SOAPElement
object with the
specified namepublic void removeChild(MessageElement child)
MessageElement
removeChild
in class MessageElement
public SOAPElement addChildElement(SOAPElement element) throws SOAPException
addChildElement
in interface SOAPElement
addChildElement
in class MessageElement
element
-
SOAPException
public void setSAAJEncodingCompliance(boolean comply)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |