org.jboss.axis.message
Class SOAPHeaderAxisImpl
java.lang.Object
org.jboss.axis.message.NodeImpl
org.jboss.axis.message.SOAPElementImpl
org.jboss.axis.message.SOAPElementAxisImpl
org.jboss.axis.message.SOAPHeaderImpl
org.jboss.axis.message.SOAPHeaderAxisImpl
- All Implemented Interfaces:
- Cloneable, javax.xml.soap.SOAPElement, javax.xml.soap.SOAPHeader, Element, Node
public class SOAPHeaderAxisImpl
- extends SOAPHeaderImpl
Holder for header elements.
- Author:
- Glyn Normington (glyn@apache.org)
Fields inherited from class org.jboss.axis.message.SOAPElementAxisImpl |
_isRoot, attributes, context, elementRep, encodingStyle, endEventIndex, href, id, message, name, namespaces, namespaceURI, objectValue, prefix, qNameAttrs, recorder, soapPart, startContentsIndex, startEventIndex, typeQName |
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.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 |
Methods inherited from class org.jboss.axis.message.SOAPElementAxisImpl |
addAttribute, addAttribute, addAttribute, addAttribute, addChild, addMapping, addNamespaceDeclaration, addTextNode, appendChild, cloneNode, clonning, detachAllChildren, detachNode, getAllAttributes, getAsDocument, getAsDOM, getAsString, getAsStringFromInternal, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributesEx, getAttributeValue, getAttributeValue, getChildElements, getChildElements, getChildNodes, getChildren, getCompleteAttributes, getElementName, getElementsByTagName, getElementsByTagNameNS, getElementsNS, getEncodingStyle, getEnvelope, getFirstChild, getFixupDeserializer, getHref, getID, getLastChild, getLocalName, getName, getNamespacePrefixes, getNamespaceURI, getNamespaceURI, getNextSibling, getNodeType, getNodeValue, getObjectValue, getObjectValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPrefix, getPreviousSibling, getQName, getRealElement, getRecorder, getTagName, getType, getValueAsType, getValueAsType, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, insertBefore, isDirty, isImmutable, isRoot, isSupported, makeAttributesEditable, normalize, output, printFromInternal, publishContents, publishToHandler, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeContents, removeNamespaceDeclaration, replaceChild, setAllAttributes, setAllImmutable, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setContentsIndex, setDirty, setEncodingStyle, setEndIndex, setEnvelope, setFixupDeserializer, setImmutable, setName, setNamespaceURI, setNSMappings, setObjectValue, setOwnerDocument, setPrefix, setQName, setRecorder, setType |
Methods inherited from class org.jboss.axis.message.NodeImpl |
compareDocumentPosition, getBaseURI, getFeature, getNodeName, getTextContent, getUserData, getValue, hashCode, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, recycleNode, setNodeValue, setTextContent, setUserData, setValue, toString |
Methods inherited from interface javax.xml.soap.SOAPElement |
addAttribute, addNamespaceDeclaration, addTextNode, getAllAttributes, getAttributeValue, getChildElements, getChildElements, getElementName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeContents, removeNamespaceDeclaration, setEncodingStyle |
Methods inherited from interface javax.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 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 |
SOAPHeaderAxisImpl
public SOAPHeaderAxisImpl(String namespace,
String localPart,
String prefix,
Attributes attributes,
DeserializationContext context,
SOAPConstants soapConsts)
throws AxisFault
- Throws:
AxisFault
setParentElement
public void setParentElement(javax.xml.soap.SOAPElement parent)
throws javax.xml.soap.SOAPException
- Description copied from class:
NodeImpl
- Sets the parent of this Node object to the given SOAPElement object.
- Overrides:
setParentElement
in class SOAPElementAxisImpl
- Parameters:
parent
- the SOAPElement object to be set as the parent of this Node object
- Throws:
javax.xml.soap.SOAPException
- if there is a problem in setting the parent to the given node
addHeaderElement
public javax.xml.soap.SOAPHeaderElement addHeaderElement(javax.xml.soap.Name name)
throws javax.xml.soap.SOAPException
- Specified by:
addHeaderElement
in interface javax.xml.soap.SOAPHeader
- Overrides:
addHeaderElement
in class SOAPHeaderImpl
- Throws:
javax.xml.soap.SOAPException
examineHeaderElements
public Iterator examineHeaderElements(String actor)
- Specified by:
examineHeaderElements
in interface javax.xml.soap.SOAPHeader
- Overrides:
examineHeaderElements
in class SOAPHeaderImpl
extractHeaderElements
public Iterator extractHeaderElements(String actor)
- Specified by:
extractHeaderElements
in interface javax.xml.soap.SOAPHeader
- Overrides:
extractHeaderElements
in class SOAPHeaderImpl
examineMustUnderstandHeaderElements
public Iterator examineMustUnderstandHeaderElements(String actor)
- Specified by:
examineMustUnderstandHeaderElements
in interface javax.xml.soap.SOAPHeader
- Overrides:
examineMustUnderstandHeaderElements
in class SOAPHeaderImpl
examineAllHeaderElements
public Iterator examineAllHeaderElements()
- Specified by:
examineAllHeaderElements
in interface javax.xml.soap.SOAPHeader
- Overrides:
examineAllHeaderElements
in class SOAPHeaderImpl
extractAllHeaderElements
public Iterator extractAllHeaderElements()
- Specified by:
extractAllHeaderElements
in interface javax.xml.soap.SOAPHeader
- Overrides:
extractAllHeaderElements
in class SOAPHeaderImpl
outputImpl
protected void outputImpl(SerializationContext context)
throws Exception
- Description copied from class:
SOAPElementAxisImpl
- Subclasses can override
- Overrides:
outputImpl
in class SOAPElementAxisImpl
- Throws:
Exception
addChildElement
public javax.xml.soap.SOAPElement addChildElement(javax.xml.soap.SOAPElement element)
throws javax.xml.soap.SOAPException
- we have to override this to enforce that SOAPHeader immediate
children are exclusively of type SOAPHeaderElement (otherwise
we'll get mysterious ClassCastExceptions down the road... )
- Specified by:
addChildElement
in interface javax.xml.soap.SOAPElement
- Overrides:
addChildElement
in class SOAPElementAxisImpl
- Parameters:
element
- child element
- Returns:
- soap element
- Throws:
javax.xml.soap.SOAPException
addChildElement
public javax.xml.soap.SOAPElement addChildElement(javax.xml.soap.Name name)
throws javax.xml.soap.SOAPException
- Description copied from class:
SOAPElementImpl
- Creates a new SOAPElement object initialized with the given Name object and adds the new element to this SOAPElement object.
- Specified by:
addChildElement
in interface javax.xml.soap.SOAPElement
- Overrides:
addChildElement
in class SOAPElementAxisImpl
- Parameters:
name
- a Name object with the XML name for the new element
- Returns:
- the new SOAPElement object that was created
- Throws:
javax.xml.soap.SOAPException
- if there is an error in creating the SOAPElement object
addChildElement
public javax.xml.soap.SOAPElement addChildElement(String localName)
throws javax.xml.soap.SOAPException
- Description copied from class:
SOAPElementImpl
- Creates a new SOAPElement object initialized with the specified local name and adds the new element to this SOAPElement object.
- Specified by:
addChildElement
in interface javax.xml.soap.SOAPElement
- Overrides:
addChildElement
in class SOAPElementAxisImpl
- Parameters:
localName
- a String giving the local name for the element
- Returns:
- the new SOAPElement object that was created
- Throws:
javax.xml.soap.SOAPException
- if there is an error in creating the SOAPElement object
addChildElement
public javax.xml.soap.SOAPElement addChildElement(String localName,
String prefix)
throws javax.xml.soap.SOAPException
- Description copied from class:
SOAPElementImpl
- Creates a new SOAPElement object initialized with the specified local name and prefix and adds the new element to this SOAPElement object.
- Specified by:
addChildElement
in interface javax.xml.soap.SOAPElement
- Overrides:
addChildElement
in class SOAPElementAxisImpl
- Parameters:
localName
- a String giving the local name for the new elementprefix
- a String giving the namespace prefix for the new element
- Returns:
- the new SOAPElement object that was created
- Throws:
javax.xml.soap.SOAPException
- if there is an error in creating the SOAPElement object
addChildElement
public javax.xml.soap.SOAPElement addChildElement(String localName,
String prefix,
String uri)
throws javax.xml.soap.SOAPException
- Description copied from class:
SOAPElementImpl
- Creates a new SOAPElement object initialized with the specified local name, prefix, and URI and adds the new element to this SOAPElement object.
- Specified by:
addChildElement
in interface javax.xml.soap.SOAPElement
- Overrides:
addChildElement
in class SOAPElementAxisImpl
- Parameters:
localName
- a String giving the local name for the new elementprefix
- a String giving the namespace prefix for the new elementuri
- a String giving the URI of the namespace to which the new element belongs
- Returns:
- the new SOAPElement object that was created
- Throws:
javax.xml.soap.SOAPException
- if there is an error in creating the SOAPElement object
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.