org.apache.axis.message
Class SOAPHeaderElement
- Cloneable, org.w3c.dom.Element, Node, NodeList, Serializable, SOAPElement, SOAPHeaderElement
public class SOAPHeaderElement
A simple header element abstraction. Extends MessageElement with
header-specific stuff like mustUnderstand, actor, and a 'processed' flag.
- Glen Daniels (gdaniels@apache.org)
- Glyn Normington (glyn@apache.org)
_isRoot , context , encodingStyle , endEventIndex , fixupDeserializer , href , id , log , message , namespaces , qNameAttrs , recorder , startContentsIndex , startEventIndex , typeQName |
addAttribute , addAttribute , addAttribute , addAttribute , addChild , addChildElement , addChildElement , addChildElement , addChildElement , addChildElement , addMapping , addNamespaceDeclaration , addTextNode , childDeepCloned , cloneNode , cloning , detachAllChildren , equals , findElement , getAllAttributes , getAsDOM , getAsDocument , getAsString , getAttribute , getAttributeNS , getAttributeNode , getAttributeNodeNS , getAttributeValue , getAttributeValue , getAttributesEx , getChildElement , getChildElements , getChildElements , getChildElements , getChildren , getCompleteAttributes , getDeserializationContext , getElementName , getElementsByTagName , getElementsByTagNameNS , getElementsNS , getEncodingStyle , getEnvelope , getFixupDeserializer , getHref , getID , getLength , getName , getNamespacePrefixes , getNamespaceURI , getObjectValue , getObjectValue , getOwnerDocument , getPrefix , getQName , getRealElement , getRecorder , getTagName , getType , getValue , getValueAsType , getValueAsType , getValueDOM , getVisibleNamespacePrefixes , hasAttribute , hasAttributeNS , isRoot , item , output , outputImpl , publishContents , publishToHandler , removeAttribute , removeAttribute , removeAttributeNS , removeAttributeNode , removeContents , removeNamespaceDeclaration , setAllAttributes , setAttribute , setAttribute , setAttributeNS , setAttributeNode , setAttributeNodeNS , setContentsIndex , setEncodingStyle , setEndIndex , setEnvelope , setFixupDeserializer , setNSMappings , setName , setNamespaceURI , setObjectValue , setQName , setRecorder , setType , setValue , toString |
appendChild , cloneNode , compareDocumentPosition , convertAttrSAXtoDOM , detachNode , getAttributes , getBaseURI , getChildNodes , getFeature , getFirstChild , getLastChild , getLocalName , getNamespaceURI , getNextSibling , getNodeName , getNodeType , getNodeValue , getOwnerDocument , getParent , getParentElement , getParentNode , getPrefix , getPreviousSibling , getSchemaTypeInfo , getTextContent , getUserData , getValue , hasAttributes , hasChildNodes , initializeChildren , insertBefore , isDefaultNamespace , isDirty , isEqualNode , isSameNode , isSupported , lookupNamespaceURI , lookupPrefix , makeAttributesEditable , normalize , output , recycleNode , removeChild , replaceChild , reset , setDirty , setDirty , setIdAttribute , setIdAttributeNS , setIdAttributeNode , setNodeValue , setOwnerDocument , setParent , setParentElement , setPrefix , setTextContent , setUserData , setValue |
actor
protected String actor
mustUnderstand
protected boolean mustUnderstand
processed
protected boolean processed
relay
protected boolean relay
SOAPHeaderElement
public SOAPHeaderElement(Element elem)
create a node through a deep copy of the passed in element.
SOAPHeaderElement
public SOAPHeaderElement(String namespace,
String localPart)
constructor
namespace
- namespace of elementlocalPart
- local name
SOAPHeaderElement
public SOAPHeaderElement(String namespace,
String localPart,
Object value)
constructor binding the internal object value field to the
value parameter
namespace
- namespace of the elementlocalPart
- local namevalue
- value of the node
SOAPHeaderElement
public SOAPHeaderElement(String namespace,
String localPart,
String prefix,
Attributes attributes,
DeserializationContext context)
throws AxisFault
Advanced constructor used for deserialization.
- The context provides the mappings and Sax event recorder
- The soap messaging style is determined from the current message context, defaulting
to SOAP1.1 if there is no current context.
- if there is an id attribute (any namespace), then the ID is registered
with
DeserializationContext.registerElementByID(String,MessageElement)
;a new recorder is
created if needed.
- If there is an attribute "root" in the default SOAP namespace, then it is examined
to see if it marks the element as root (value=="1" or not)
- If there is an arrayType attribute then we assume we are an array and set our
MessageElement.typeQName
field appropriately.
- The
MessageElement.href
field is set if there is a relevant href value
namespace
- namespace namespace of elementlocalPart
- local name local name of elementprefix
- prefix prefix of elementattributes
- attributes to save as our attributescontext
- deserialization context for this message element
AxisFault
- if the encoding style is not recognized/supported
SOAPHeaderElement
public SOAPHeaderElement(QName qname)
constructor declaring the qualified name of the node
SOAPHeaderElement
public SOAPHeaderElement(QName qname,
Object value)
constructor declaring the qualified name of the node
and its value
value
- value of the node
SOAPHeaderElement
public SOAPHeaderElement(Name name)
construct using a
Name
implementation,
getActor
public String getActor()
Returns the uri of the actor associated with this
SOAPHeaderElement
object.
- getActor in interface SOAPHeaderElement
- a
String
giving the URI of the
actor
setActor(java.lang.String)
getMustUnderstand
public boolean getMustUnderstand()
Returns whether the mustUnderstand attribute for this
SOAPHeaderElement
object is turned on.
- getMustUnderstand in interface SOAPHeaderElement
true
if the mustUnderstand attribute of
this SOAPHeaderElement
object is turned on;
false
otherwise
getRelay
public boolean getRelay()
getRole
public String getRole()
isProcessed
public boolean isProcessed()
setActor
public void setActor(String a)
Sets the actor associated with this
SOAPHeaderElement
object to the specified actor. The
default value of an actor is:
SOAPConstants.URI_SOAP_ACTOR_NEXT
- setActor in interface SOAPHeaderElement
setMustUnderstand
public void setMustUnderstand(boolean b)
Sets the mustUnderstand attribute for this
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 SOAPHeaderElement
setProcessed
public void setProcessed(boolean value)
setRelay
public void setRelay(boolean relay)
setRole
public void setRole(String a)
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.