Class Header1_2Impl
- java.lang.Object
-
- com.sun.xml.messaging.saaj.soap.impl.ElementImpl
-
- com.sun.xml.messaging.saaj.soap.impl.HeaderImpl
-
- com.sun.xml.messaging.saaj.soap.ver1_2.Header1_2Impl
-
- All Implemented Interfaces:
Node,SOAPBodyElement,SOAPElement,SOAPHeader,Element,Node
public class Header1_2Impl extends HeaderImpl
-
-
Field Summary
-
Fields inherited from class com.sun.xml.messaging.saaj.soap.impl.HeaderImpl
MUST_UNDERSTAND_ONLY
-
Fields inherited from class com.sun.xml.messaging.saaj.soap.impl.ElementImpl
DSIG_NS, elementQName, WSU_NS, XENC_NS
-
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
-
-
Constructor Summary
Constructors Constructor Description Header1_2Impl(SOAPDocumentImpl ownerDocument, String prefix)Header1_2Impl(SOAPDocumentImpl ownerDoc, Element domElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SOAPElementaddAttribute(Name name, String value)Adds an attribute with the specified name and value to thisSOAPElementobject.SOAPElementaddAttribute(QName name, String value)Adds an attribute with the specified name and value to thisSOAPElementobject.SOAPHeaderElementaddNotUnderstoodHeaderElement(QName sourceName)Creates a new NotUnderstoodSOAPHeaderElementobject initialized with the specified name and adds it to thisSOAPHeaderobject.SOAPElementaddTextNode(String text)Creates a newTextobject initialized with the givenStringand adds it to thisSOAPElementobject.protected SOAPHeaderElementcreateHeaderElement(Name name)protected SOAPHeaderElementcreateHeaderElement(QName name)protected NameImplgetNotUnderstoodName()protected NameImplgetSupportedEnvelopeName()protected NameImplgetUpgradeName()voidsetEncodingStyle(String encodingStyle)Sets the encoding style for thisSOAPElementobject to one specified.-
Methods inherited from class com.sun.xml.messaging.saaj.soap.impl.HeaderImpl
addChildElement, addElement, addElement, addHeaderElement, addHeaderElement, addUpgradeHeaderElement, addUpgradeHeaderElement, addUpgradeHeaderElement, convertToSoapElement, examineAllHeaderElements, examineHeaderElements, examineMustUnderstandHeaderElements, extractAllHeaderElements, extractHeaderElements, getHeaderElements, getHeaderElementsForActor, setElementQName, setParentElement
-
Methods inherited from class com.sun.xml.messaging.saaj.soap.impl.ElementImpl
addCDATA, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addNode, addText, appendChild, cloneNode, compareDocumentPosition, convertToSoapText, createElement, createElement, createQName, detachNode, doGetNamespacePrefixes, ensureNamespaceIsDeclared, findAndConvertChildElement, findChild, findEncodingStyleAttributeName, getAllAttributes, getAllAttributesAsQNames, getAllAttributesFrom, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributeValue, getAttributeValue, getAttributeValueFrom, getBaseURI, getChildElementNodes, getChildElements, getChildElements, getChildElements, getChildElementsFrom, getChildNodes, getDomElement, getElementName, getElementQName, getElementsByTagName, getElementsByTagNameNS, getEncodingStyle, getFeature, getFirstChild, getLastChild, getLocalName, getLocalPart, getNamespaceAttr, getNamespaceAttrFrom, getNamespaceContextNodes, getNamespaceContextNodes, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPrefix, getPreviousSibling, getQualifiedName, getSchemaTypeInfo, getSoapDocument, getSOAPNamespace, getTagName, getTextContent, getUserData, getValue, getValueNode, getValueNodeStrict, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, importElement, insertBefore, isDefaultNamespace, isEqualNode, isNamespaceQualified, isNamespaceQualified, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, recycleNode, removeAttribute, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeContents, removeNamespaceDeclaration, replaceChild, replaceElementWithSOAPElement, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setEncodingStyleNamespace, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setPrefix, setTextContent, setUserData, setValue, tryToFindEncodingStyleAttributeName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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 jakarta.xml.soap.Node
detachNode, getParentElement, getValue, recycleNode, setValue
-
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
-
Methods inherited from interface jakarta.xml.soap.SOAPElement
addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, createQName, getAllAttributes, getAllAttributesAsQNames, getAttributeValue, getAttributeValue, getChildElements, getChildElements, getChildElements, getElementName, getElementQName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeAttribute, removeContents, removeNamespaceDeclaration
-
-
-
-
Constructor Detail
-
Header1_2Impl
public Header1_2Impl(SOAPDocumentImpl ownerDocument, String prefix)
-
Header1_2Impl
public Header1_2Impl(SOAPDocumentImpl ownerDoc, Element domElement)
-
-
Method Detail
-
getNotUnderstoodName
protected NameImpl getNotUnderstoodName()
- Specified by:
getNotUnderstoodNamein classHeaderImpl
-
getUpgradeName
protected NameImpl getUpgradeName()
- Specified by:
getUpgradeNamein classHeaderImpl
-
getSupportedEnvelopeName
protected NameImpl getSupportedEnvelopeName()
- Specified by:
getSupportedEnvelopeNamein classHeaderImpl
-
addNotUnderstoodHeaderElement
public SOAPHeaderElement addNotUnderstoodHeaderElement(QName sourceName) throws SOAPException
Description copied from interface:SOAPHeaderCreates a new NotUnderstoodSOAPHeaderElementobject initialized with the specified name and adds it to thisSOAPHeaderobject. This operation is supported only by SOAP 1.2.- Parameters:
sourceName- aQNameobject with the name of theSOAPHeaderElementobject that was not understood.- Returns:
- the new
SOAPHeaderElementobject that was inserted into thisSOAPHeaderobject - Throws:
SOAPException- if a SOAP error occurs.
-
addTextNode
public SOAPElement addTextNode(String text) throws SOAPException
Description copied from interface:SOAPElementCreates a newTextobject initialized with the givenStringand adds it to thisSOAPElementobject.- Specified by:
addTextNodein interfaceSOAPElement- Overrides:
addTextNodein classElementImpl- Parameters:
text- aStringobject with the textual content to be added- Returns:
- the
SOAPElementobject into which the newTextobject was inserted - Throws:
SOAPException- if there is an error in creating the newTextobject or if it is not legal to attach it as a child to thisSOAPElement
-
createHeaderElement
protected SOAPHeaderElement createHeaderElement(Name name) throws SOAPException
- Specified by:
createHeaderElementin classHeaderImpl- Throws:
SOAPException
-
createHeaderElement
protected SOAPHeaderElement createHeaderElement(QName name) throws SOAPException
- Specified by:
createHeaderElementin classHeaderImpl- Throws:
SOAPException
-
setEncodingStyle
public void setEncodingStyle(String encodingStyle) throws SOAPException
Description copied from interface:SOAPElementSets the encoding style for thisSOAPElementobject to one specified.- Specified by:
setEncodingStylein interfaceSOAPElement- Overrides:
setEncodingStylein classElementImpl- Parameters:
encodingStyle- aStringgiving the encoding style- Throws:
SOAPException- if setting the encodingStyle is invalid for this SOAPElement.- See Also:
SOAPElement.getEncodingStyle()
-
addAttribute
public SOAPElement addAttribute(Name name, String value) throws SOAPException
Description copied from interface:SOAPElementAdds an attribute with the specified name and value to thisSOAPElementobject.- Specified by:
addAttributein interfaceSOAPElement- Overrides:
addAttributein classElementImpl- Parameters:
name- aNameobject with the name of the attributevalue- aStringgiving the value of the attribute- Returns:
- the
SOAPElementobject into which the attribute was inserted - Throws:
SOAPException- if there is an error in creating the Attribute, or it is invalid to set an attribute withNamenameon this SOAPElement.- See Also:
SOAPElement.addAttribute(javax.xml.namespace.QName, String)
-
addAttribute
public SOAPElement addAttribute(QName name, String value) throws SOAPException
Description copied from interface:SOAPElementAdds an attribute with the specified name and value to thisSOAPElementobject.- Specified by:
addAttributein interfaceSOAPElement- Overrides:
addAttributein classElementImpl- Parameters:
name- aQNameobject with the name of the attributevalue- aStringgiving the value of the attribute- Returns:
- the
SOAPElementobject into which the attribute was inserted - Throws:
SOAPException- if there is an error in creating the Attribute, or it is invalid to set an attribute withQNameqnameon this SOAPElement.- See Also:
SOAPElement.addAttribute(Name, String)
-
-