|
|||||||||||
| 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.SOAPHeaderElement
A simple header element abstraction. Extends MessageElement with header-specific stuff like mustUnderstand, actor, and a 'processed' flag.
| Nested Class Summary |
| Nested classes inherited from class org.apache.axis.message.MessageElement |
MessageElement.QNameAttr |
| Field Summary | |
protected java.lang.String |
actor
|
protected boolean |
mustUnderstand
|
protected boolean |
processed
|
protected boolean |
relay
|
| 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 | |
SOAPHeaderElement(org.w3c.dom.Element elem)
|
|
SOAPHeaderElement(Name name)
|
|
SOAPHeaderElement(java.lang.String namespace,
java.lang.String localPart)
|
|
SOAPHeaderElement(java.lang.String namespace,
java.lang.String localPart,
java.lang.Object value)
|
|
SOAPHeaderElement(java.lang.String namespace,
java.lang.String localPart,
java.lang.String prefix,
org.xml.sax.Attributes attributes,
DeserializationContext context)
|
|
| Method Summary | |
void |
detachNode()
Removes this Node object from the tree. |
java.lang.String |
getActor()
Returns the uri of the actor associated with this
SOAPHeaderElement object. |
boolean |
getMustUnderstand()
Returns whether the mustUnderstand attribute for this SOAPHeaderElement object is turned on. |
boolean |
getRelay()
|
java.lang.String |
getRole()
|
boolean |
isProcessed()
|
protected void |
outputImpl(SerializationContext context)
Subclasses can override |
void |
setActor(java.lang.String a)
Sets the actor associated with this
SOAPHeaderElement object to the specified actor. |
void |
setMustUnderstand(boolean b)
Sets the mustUnderstand attribute for this
SOAPHeaderElement object to be on or off. |
void |
setParentElement(SOAPElement parent)
Sets the parent of this Node object to the given
SOAPElement object. |
void |
setProcessed(boolean value)
|
void |
setRelay(boolean relay)
|
void |
setRole(java.lang.String a)
|
| 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, addChildElement, addNamespaceDeclaration, addTextNode, getAllAttributes, getAttributeValue, getChildElements, getChildElements, getElementName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, removeAttribute, removeNamespaceDeclaration, setEncodingStyle |
| Methods inherited from interface javax.xml.soap.Node |
getParentElement, getValue, recycleNode |
| Field Detail |
protected boolean processed
protected java.lang.String actor
protected boolean mustUnderstand
protected boolean relay
| Constructor Detail |
public SOAPHeaderElement(java.lang.String namespace,
java.lang.String localPart)
public SOAPHeaderElement(Name name)
public SOAPHeaderElement(java.lang.String namespace,
java.lang.String localPart,
java.lang.Object value)
public SOAPHeaderElement(org.w3c.dom.Element elem)
public SOAPHeaderElement(java.lang.String namespace,
java.lang.String localPart,
java.lang.String prefix,
org.xml.sax.Attributes attributes,
DeserializationContext context)
throws AxisFault
| Method Detail |
public void setParentElement(SOAPElement parent)
throws SOAPException
NodeNode object to the given
SOAPElement object.
setParentElement in interface NodesetParentElement in class MessageElementparent - 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()
NodeNode object from the tree. Once
removed, this node can be garbage collected if there are no
application references to it.
detachNode in interface NodedetachNode in class MessageElementpublic boolean getMustUnderstand()
SOAPHeaderElementSOAPHeaderElement object is turned on.
getMustUnderstand in interface SOAPHeaderElementtrue if the mustUnderstand attribute of
this SOAPHeaderElement object is turned on;
false otherwisepublic void setMustUnderstand(boolean b)
SOAPHeaderElement
SOAPHeaderElement object to be on or off.
If the mustUnderstand attribute is on, the actor who
receives the SOAPHeaderElement must process it
correctly. This ensures, for example, that if the
SOAPHeaderElement object modifies the message, that
the message is being modified correctly.
setMustUnderstand in interface SOAPHeaderElementb - true to
set the mustUnderstand attribute on; false
to turn if offgetMustUnderstand()public java.lang.String getActor()
SOAPHeaderElement
SOAPHeaderElement object.
getActor in interface SOAPHeaderElementString giving the URI of the
actorsetActor(java.lang.String)public void setActor(java.lang.String a)
SOAPHeaderElement
SOAPHeaderElement object to the specified actor. The
default value of an actor is:
SOAPConstants.URI_SOAP_ACTOR_NEXT
setActor in interface SOAPHeaderElementa - a String giving
the URI of the actor to setgetActor()public java.lang.String getRole()
public void setRole(java.lang.String a)
public boolean getRelay()
public void setRelay(boolean relay)
public void setProcessed(boolean value)
public boolean isProcessed()
protected void outputImpl(SerializationContext context)
throws java.lang.Exception
outputImpl in class MessageElementjava.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||