Package org.apache.axis.message
Class SOAPHeaderElement
java.lang.Object
org.apache.axis.message.NodeImpl
org.apache.axis.message.MessageElement
org.apache.axis.message.SOAPHeaderElement
- All Implemented Interfaces:
Serializable,Cloneable,Node,SOAPElement,SOAPHeaderElement,Element,Node,NodeList
- Direct Known Subclasses:
RPCHeaderParam
A simple header element abstraction. Extends MessageElement with
header-specific stuff like mustUnderstand, actor, and a 'processed' flag.
- Author:
- Glen Daniels (gdaniels@apache.org), Glyn Normington (glyn@apache.org)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.axis.message.MessageElement
MessageElement.QNameAttr -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected booleanprotected booleanprotected booleanFields inherited from class org.apache.axis.message.MessageElement
_isRoot, context, encodingStyle, endEventIndex, fixupDeserializer, href, id, log, message, namespaces, qNameAttrs, recorder, startContentsIndex, startEventIndex, typeQNameFields inherited from class org.apache.axis.message.NodeImpl
_isDirty, attributes, children, document, name, namespaceURI, parent, prefix, textRepFields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Constructor Summary
ConstructorsConstructorDescriptionSOAPHeaderElement(String namespace, String localPart) SOAPHeaderElement(String namespace, String localPart, Object value) SOAPHeaderElement(String namespace, String localPart, String prefix, Attributes attributes, DeserializationContext context) SOAPHeaderElement(QName qname) SOAPHeaderElement(QName qname, Object value) SOAPHeaderElement(Name name) SOAPHeaderElement(Element elem) -
Method Summary
Modifier and TypeMethodDescriptiongetActor()Returns the uri of the actor associated with thisSOAPHeaderElementobject.ANamedNodeMapcontaining the attributes of this node (if it is anElement) ornullotherwise.booleanReturns whether the mustUnderstand attribute for thisSOAPHeaderElementobject is turned on.booleangetRelay()getRole()booleanprotected voidoutputImpl(SerializationContext context) Subclasses can overridevoidSets the actor associated with thisSOAPHeaderElementobject to the specified actor.voidsetMustUnderstand(boolean b) Sets the mustUnderstand attribute for thisSOAPHeaderElementobject to be on or off.voidsetParentElement(SOAPElement parent) Sets the parent of thisNodeobject to the givenSOAPElementobject.voidsetProcessed(boolean value) voidsetRelay(boolean relay) voidMethods inherited from class org.apache.axis.message.MessageElement
addAttribute, addAttribute, addAttribute, addAttribute, addChild, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addMapping, addNamespaceDeclaration, addTextNode, childDeepCloned, cloneNode, cloning, detachAllChildren, equals, findElement, getAllAttributes, getAsDocument, getAsDOM, getAsString, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributesEx, getAttributeValue, getAttributeValue, 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, publishContents, publishToHandler, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeContents, removeNamespaceDeclaration, setAllAttributes, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setContentsIndex, setEncodingStyle, setEndIndex, setEnvelope, setFixupDeserializer, setName, setNamespaceURI, setNSMappings, setObjectValue, setQName, setRecorder, setType, setValue, toStringMethods inherited from class org.apache.axis.message.NodeImpl
appendChild, compareDocumentPosition, convertAttrSAXtoDOM, detachNode, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getParent, getParentElement, getParentNode, getPrefix, getPreviousSibling, getSchemaTypeInfo, getTextContent, getUserData, hasAttributes, hasChildNodes, initializeChildren, insertBefore, isDefaultNamespace, isDirty, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, makeAttributesEditable, normalize, recycleNode, removeChild, replaceChild, reset, setDirty, setDirty, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setOwnerDocument, setParent, setPrefix, setTextContent, setUserDataMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSMethods inherited from interface javax.xml.soap.Node
detachNode, getParentElement, getValue, recycleNode, setValueMethods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataMethods inherited from interface javax.xml.soap.SOAPElement
addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, getAllAttributes, getAttributeValue, getChildElements, getChildElements, getElementName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeContents, removeNamespaceDeclaration, setEncodingStyle
-
Field Details
-
processed
protected boolean processed -
actor
-
mustUnderstand
protected boolean mustUnderstand -
relay
protected boolean relay
-
-
Constructor Details
-
SOAPHeaderElement
-
SOAPHeaderElement
-
SOAPHeaderElement
-
SOAPHeaderElement
-
SOAPHeaderElement
-
SOAPHeaderElement
-
SOAPHeaderElement
public SOAPHeaderElement(String namespace, String localPart, String prefix, Attributes attributes, DeserializationContext context) throws AxisFault - Throws:
AxisFault
-
-
Method Details
-
setParentElement
Description copied from class:NodeImplSets the parent of thisNodeobject to the givenSOAPElementobject.- Specified by:
setParentElementin interfaceNode- Overrides:
setParentElementin classNodeImpl- Parameters:
parent- theSOAPElementobject to be set as the parent of thisNodeobject- Throws:
SOAPException- if there is a problem in setting the parent to the given element- See Also:
-
getMustUnderstand
public boolean getMustUnderstand()Description copied from interface:SOAPHeaderElementReturns whether the mustUnderstand attribute for thisSOAPHeaderElementobject is turned on.- Specified by:
getMustUnderstandin interfaceSOAPHeaderElement- Returns:
trueif the mustUnderstand attribute of thisSOAPHeaderElementobject is turned on;falseotherwise
-
setMustUnderstand
public void setMustUnderstand(boolean b) Description copied from interface:SOAPHeaderElementSets the mustUnderstand attribute for thisSOAPHeaderElementobject to be on or off.If the mustUnderstand attribute is on, the actor who receives the
SOAPHeaderElementmust process it correctly. This ensures, for example, that if theSOAPHeaderElementobject modifies the message, that the message is being modified correctly.- Specified by:
setMustUnderstandin interfaceSOAPHeaderElement- Parameters:
b-trueto set the mustUnderstand attribute on;falseto turn if off- See Also:
-
getActor
Description copied from interface:SOAPHeaderElementReturns the uri of the actor associated with thisSOAPHeaderElementobject.- Specified by:
getActorin interfaceSOAPHeaderElement- Returns:
- a
Stringgiving the URI of the actor - See Also:
-
setActor
Description copied from interface:SOAPHeaderElementSets the actor associated with thisSOAPHeaderElementobject to the specified actor. The default value of an actor is:SOAPConstants.URI_SOAP_ACTOR_NEXT- Specified by:
setActorin interfaceSOAPHeaderElement- Parameters:
a- aStringgiving the URI of the actor to set- See Also:
-
getRole
-
setRole
-
getRelay
public boolean getRelay() -
setRelay
public void setRelay(boolean relay) -
setProcessed
public void setProcessed(boolean value) -
isProcessed
public boolean isProcessed() -
outputImpl
Subclasses can override- Overrides:
outputImplin classMessageElement- Parameters:
context- destination.- Throws:
Exception- if something went wrong.
-
getAttributes
Description copied from class:NodeImplANamedNodeMapcontaining the attributes of this node (if it is anElement) ornullotherwise.- Specified by:
getAttributesin interfaceNode- Overrides:
getAttributesin classNodeImpl
-