com.sun.xml.messaging.saaj.soap.impl
Class HeaderImpl

java.lang.Object
  extended by com.sun.org.apache.xerces.internal.dom.NodeImpl
      extended by com.sun.org.apache.xerces.internal.dom.ChildNode
          extended by com.sun.org.apache.xerces.internal.dom.ParentNode
              extended by com.sun.org.apache.xerces.internal.dom.ElementImpl
                  extended by com.sun.org.apache.xerces.internal.dom.ElementNSImpl
                      extended by com.sun.xml.messaging.saaj.soap.impl.ElementImpl
                          extended by com.sun.xml.messaging.saaj.soap.impl.HeaderImpl
All Implemented Interfaces:
Serializable, Cloneable, SOAPBodyElement, SOAPElement, SOAPHeader, Element, EventTarget, Node, NodeList, TypeInfo
Direct Known Subclasses:
Header1_1Impl, Header1_2Impl

public abstract class HeaderImpl
extends ElementImpl
implements SOAPHeader

See Also:
Serialized Form

Field Summary
protected static boolean MUST_UNDERSTAND_ONLY
           
 
Fields inherited from class com.sun.xml.messaging.saaj.soap.impl.ElementImpl
DSIG_NS, elementQName, log, WSU_NS, XENC_NS, XML_URI, XMLNS_URI
 
Fields inherited from class com.sun.org.apache.xerces.internal.dom.ElementNSImpl
localName, namespaceURI
 
Fields inherited from class com.sun.org.apache.xerces.internal.dom.ElementImpl
attributes, name
 
Fields inherited from class com.sun.org.apache.xerces.internal.dom.ParentNode
firstChild, fNodeListCache, ownerDocument
 
Fields inherited from class com.sun.org.apache.xerces.internal.dom.ChildNode
nextSibling, previousSibling
 
Fields inherited from class com.sun.org.apache.xerces.internal.dom.NodeImpl
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE
 
Fields 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
 
Fields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION
 
Constructor Summary
protected HeaderImpl(SOAPDocumentImpl ownerDoc, NameImpl name)
           
 
Method Summary
 SOAPElement addChildElement(String localName)
           
protected  SOAPElement addElement(Name name)
           
protected  SOAPElement addElement(QName name)
           
 SOAPHeaderElement addHeaderElement(Name name)
           
 SOAPHeaderElement addHeaderElement(QName name)
           
 SOAPHeaderElement addUpgradeHeaderElement(Iterator supportedSoapUris)
           
 SOAPHeaderElement addUpgradeHeaderElement(String supportedSoapUri)
           
 SOAPHeaderElement addUpgradeHeaderElement(String[] supportedSoapUris)
           
protected  SOAPElement convertToSoapElement(Element element)
           
protected abstract  SOAPHeaderElement createHeaderElement(Name name)
           
protected abstract  SOAPHeaderElement createHeaderElement(QName name)
           
 Iterator examineAllHeaderElements()
           
 Iterator examineHeaderElements(String actor)
           
 Iterator examineMustUnderstandHeaderElements(String actor)
           
 Iterator extractAllHeaderElements()
           
 Iterator extractHeaderElements(String actor)
           
protected  Iterator getHeaderElements(String actor, boolean detach, boolean mustUnderstand)
           
protected  Iterator getHeaderElementsForActor(String actor, boolean detach, boolean mustUnderstand)
           
protected abstract  NameImpl getNotUnderstoodName()
           
protected abstract  NameImpl getSupportedEnvelopeName()
           
protected abstract  NameImpl getUpgradeName()
           
 SOAPElement setElementQName(QName newName)
           
 void setParentElement(SOAPElement element)
           
 
Methods inherited from class com.sun.xml.messaging.saaj.soap.impl.ElementImpl
addAttribute, addAttribute, addCDATA, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addNode, addText, addTextNode, circumventBug5034339, createElement, createElement, createQName, detachNode, doGetNamespacePrefixes, ensureNamespaceIsDeclared, findAndConvertChildElement, findChild, findEncodingStyleAttributeName, getAllAttributes, getAllAttributesAsQNames, getAllAttributesFrom, getAttributeValue, getAttributeValue, getAttributeValueFrom, getChildElementNodes, getChildElements, getChildElements, getChildElements, getChildElementsFrom, getElementName, getElementQName, getEncodingStyle, getLocalPart, getNamespaceAttr, getNamespaceAttrFrom, getNamespaceContextNodes, getNamespaceContextNodes, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getOwnerDocument, getParentElement, getPrefix, getQualifiedName, getSOAPNamespace, getValue, getValueNode, getValueNodeStrict, getVisibleNamespacePrefixes, importElement, isNamespaceQualified, isNamespaceQualified, recycleNode, removeAttribute, removeAttribute, removeContents, removeNamespaceDeclaration, replaceElementWithSOAPElement, setAttributeNS, setEncodingStyle, setEncodingStyleNamespace, setValue, tryToFindEncodingStyleAttributeName
 
Methods inherited from class com.sun.org.apache.xerces.internal.dom.ElementNSImpl
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setPrefix, setType, setValues
 
Methods inherited from class com.sun.org.apache.xerces.internal.dom.ElementImpl
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData
 
Methods inherited from class com.sun.org.apache.xerces.internal.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getTextContent, hasChildNodes, insertBefore, item, removeChild, replaceChild, setTextContent, synchronizeChildren
 
Methods inherited from class com.sun.org.apache.xerces.internal.dom.ChildNode
getNextSibling, getParentNode, getPreviousSibling
 
Methods inherited from class com.sun.org.apache.xerces.internal.dom.NodeImpl
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.xml.soap.SOAPHeader
addNotUnderstoodHeaderElement
 
Methods inherited from interface javax.xml.soap.SOAPElement
addAttribute, addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, createQName, getAllAttributes, getAllAttributesAsQNames, getAttributeValue, getAttributeValue, getChildElements, getChildElements, getChildElements, getElementName, getElementQName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeAttribute, removeContents, removeNamespaceDeclaration, setEncodingStyle
 
Methods inherited from interface javax.xml.soap.Node
detachNode, getParentElement, getValue, recycleNode, setValue
 
Methods 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, setIdAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, 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, setUserData
 

Field Detail

MUST_UNDERSTAND_ONLY

protected static final boolean MUST_UNDERSTAND_ONLY
See Also:
Constant Field Values
Constructor Detail

HeaderImpl

protected HeaderImpl(SOAPDocumentImpl ownerDoc,
                     NameImpl name)
Method Detail

createHeaderElement

protected abstract SOAPHeaderElement createHeaderElement(Name name)
                                                  throws SOAPException
Throws:
SOAPException

createHeaderElement

protected abstract SOAPHeaderElement createHeaderElement(QName name)
                                                  throws SOAPException
Throws:
SOAPException

getNotUnderstoodName

protected abstract NameImpl getNotUnderstoodName()

getUpgradeName

protected abstract NameImpl getUpgradeName()

getSupportedEnvelopeName

protected abstract NameImpl getSupportedEnvelopeName()

addHeaderElement

public SOAPHeaderElement addHeaderElement(Name name)
                                   throws SOAPException
Specified by:
addHeaderElement in interface SOAPHeader
Throws:
SOAPException

addHeaderElement

public SOAPHeaderElement addHeaderElement(QName name)
                                   throws SOAPException
Specified by:
addHeaderElement in interface SOAPHeader
Throws:
SOAPException

addElement

protected SOAPElement addElement(Name name)
                          throws SOAPException
Overrides:
addElement in class ElementImpl
Throws:
SOAPException

addElement

protected SOAPElement addElement(QName name)
                          throws SOAPException
Overrides:
addElement in class ElementImpl
Throws:
SOAPException

examineHeaderElements

public Iterator examineHeaderElements(String actor)
Specified by:
examineHeaderElements in interface SOAPHeader

extractHeaderElements

public Iterator extractHeaderElements(String actor)
Specified by:
extractHeaderElements in interface SOAPHeader

getHeaderElementsForActor

protected Iterator getHeaderElementsForActor(String actor,
                                             boolean detach,
                                             boolean mustUnderstand)

getHeaderElements

protected Iterator getHeaderElements(String actor,
                                     boolean detach,
                                     boolean mustUnderstand)

setParentElement

public void setParentElement(SOAPElement element)
                      throws SOAPException
Overrides:
setParentElement in class ElementImpl
Throws:
SOAPException

addChildElement

public SOAPElement addChildElement(String localName)
                            throws SOAPException
Specified by:
addChildElement in interface SOAPElement
Overrides:
addChildElement in class ElementImpl
Throws:
SOAPException

examineAllHeaderElements

public Iterator examineAllHeaderElements()
Specified by:
examineAllHeaderElements in interface SOAPHeader

examineMustUnderstandHeaderElements

public Iterator examineMustUnderstandHeaderElements(String actor)
Specified by:
examineMustUnderstandHeaderElements in interface SOAPHeader

extractAllHeaderElements

public Iterator extractAllHeaderElements()
Specified by:
extractAllHeaderElements in interface SOAPHeader

addUpgradeHeaderElement

public SOAPHeaderElement addUpgradeHeaderElement(Iterator supportedSoapUris)
                                          throws SOAPException
Specified by:
addUpgradeHeaderElement in interface SOAPHeader
Throws:
SOAPException

addUpgradeHeaderElement

public SOAPHeaderElement addUpgradeHeaderElement(String supportedSoapUri)
                                          throws SOAPException
Specified by:
addUpgradeHeaderElement in interface SOAPHeader
Throws:
SOAPException

addUpgradeHeaderElement

public SOAPHeaderElement addUpgradeHeaderElement(String[] supportedSoapUris)
                                          throws SOAPException
Specified by:
addUpgradeHeaderElement in interface SOAPHeader
Throws:
SOAPException

convertToSoapElement

protected SOAPElement convertToSoapElement(Element element)
Overrides:
convertToSoapElement in class ElementImpl

setElementQName

public SOAPElement setElementQName(QName newName)
                            throws SOAPException
Specified by:
setElementQName in interface SOAPElement
Overrides:
setElementQName in class ElementImpl
Throws:
SOAPException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.