- java.lang.Object
-
- jakarta.xml.soap.SOAPPart
-
- com.sun.xml.messaging.saaj.soap.SOAPPartImpl
-
- All Implemented Interfaces:
SOAPDocument
,jakarta.xml.soap.Node
,Document
,Node
public abstract class SOAPPartImpl extends jakarta.xml.soap.SOAPPart implements SOAPDocument
SOAPPartImpl is the first attachment. This contains the XML/SOAP document.- Author:
- Anil Vijendran ([email protected])
-
-
Field Summary
Fields Modifier and Type Field Description protected SOAPDocumentImpl
document
protected Envelope
envelope
protected jakarta.xml.soap.MimeHeaders
headers
protected MessageImpl
message
Reference to containing message (may be null)protected boolean
omitXmlDecl
protected Source
source
protected String
sourceCharsetEncoding
-
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 Modifier Constructor Description protected
SOAPPartImpl()
protected
SOAPPartImpl(MessageImpl message)
-
Method Summary
-
-
-
Field Detail
-
headers
protected jakarta.xml.soap.MimeHeaders headers
-
envelope
protected Envelope envelope
-
source
protected Source source
-
document
protected SOAPDocumentImpl document
-
omitXmlDecl
protected boolean omitXmlDecl
-
sourceCharsetEncoding
protected String sourceCharsetEncoding
-
message
protected MessageImpl message
Reference to containing message (may be null)
-
-
Constructor Detail
-
SOAPPartImpl
protected SOAPPartImpl()
-
SOAPPartImpl
protected SOAPPartImpl(MessageImpl message)
-
-
Method Detail
-
getContentType
protected abstract String getContentType()
-
createEnvelopeFromSource
protected abstract Envelope createEnvelopeFromSource() throws jakarta.xml.soap.SOAPException
- Throws:
jakarta.xml.soap.SOAPException
-
createEmptyEnvelope
protected abstract Envelope createEmptyEnvelope(String prefix) throws jakarta.xml.soap.SOAPException
- Throws:
jakarta.xml.soap.SOAPException
-
duplicateType
protected abstract SOAPPartImpl duplicateType()
-
getContentTypeString
protected String getContentTypeString()
-
isFastInfoset
public boolean isFastInfoset()
-
getEnvelope
public jakarta.xml.soap.SOAPEnvelope getEnvelope() throws jakarta.xml.soap.SOAPException
- Specified by:
getEnvelope
in classjakarta.xml.soap.SOAPPart
- Throws:
jakarta.xml.soap.SOAPException
-
lookForEnvelope
protected void lookForEnvelope() throws jakarta.xml.soap.SOAPException
- Throws:
jakarta.xml.soap.SOAPException
-
removeAllMimeHeaders
public void removeAllMimeHeaders()
- Specified by:
removeAllMimeHeaders
in classjakarta.xml.soap.SOAPPart
-
removeMimeHeader
public void removeMimeHeader(String header)
- Specified by:
removeMimeHeader
in classjakarta.xml.soap.SOAPPart
-
getMimeHeader
public String[] getMimeHeader(String name)
- Specified by:
getMimeHeader
in classjakarta.xml.soap.SOAPPart
-
setMimeHeader
public void setMimeHeader(String name, String value)
- Specified by:
setMimeHeader
in classjakarta.xml.soap.SOAPPart
-
addMimeHeader
public void addMimeHeader(String name, String value)
- Specified by:
addMimeHeader
in classjakarta.xml.soap.SOAPPart
-
getAllMimeHeaders
public Iterator<jakarta.xml.soap.MimeHeader> getAllMimeHeaders()
- Specified by:
getAllMimeHeaders
in classjakarta.xml.soap.SOAPPart
-
getMatchingMimeHeaders
public Iterator<jakarta.xml.soap.MimeHeader> getMatchingMimeHeaders(String[] names)
- Specified by:
getMatchingMimeHeaders
in classjakarta.xml.soap.SOAPPart
-
getNonMatchingMimeHeaders
public Iterator<jakarta.xml.soap.MimeHeader> getNonMatchingMimeHeaders(String[] names)
- Specified by:
getNonMatchingMimeHeaders
in classjakarta.xml.soap.SOAPPart
-
getContent
public Source getContent() throws jakarta.xml.soap.SOAPException
- Specified by:
getContent
in classjakarta.xml.soap.SOAPPart
- Throws:
jakarta.xml.soap.SOAPException
-
setContent
public void setContent(Source source) throws jakarta.xml.soap.SOAPException
- Specified by:
setContent
in classjakarta.xml.soap.SOAPPart
- Throws:
jakarta.xml.soap.SOAPException
-
getContentAsStream
public InputStream getContentAsStream() throws IOException
- Throws:
IOException
-
getDocument
public SOAPDocumentImpl getDocument()
- Specified by:
getDocument
in interfaceSOAPDocument
-
getSOAPPart
public SOAPPartImpl getSOAPPart()
- Specified by:
getSOAPPart
in interfaceSOAPDocument
-
getDoctype
public DocumentType getDoctype()
- Specified by:
getDoctype
in interfaceDocument
-
getImplementation
public DOMImplementation getImplementation()
- Specified by:
getImplementation
in interfaceDocument
-
getDocumentElement
public Element getDocumentElement()
- Specified by:
getDocumentElement
in interfaceDocument
-
doGetDocumentElement
protected void doGetDocumentElement()
-
createElement
public Element createElement(String tagName) throws DOMException
- Specified by:
createElement
in interfaceDocument
- Throws:
DOMException
-
createDocumentFragment
public DocumentFragment createDocumentFragment()
- Specified by:
createDocumentFragment
in interfaceDocument
-
createTextNode
public Text createTextNode(String data)
- Specified by:
createTextNode
in interfaceDocument
-
createComment
public Comment createComment(String data)
- Specified by:
createComment
in interfaceDocument
-
createCDATASection
public CDATASection createCDATASection(String data) throws DOMException
- Specified by:
createCDATASection
in interfaceDocument
- Throws:
DOMException
-
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
- Specified by:
createProcessingInstruction
in interfaceDocument
- Throws:
DOMException
-
createAttribute
public Attr createAttribute(String name) throws DOMException
- Specified by:
createAttribute
in interfaceDocument
- Throws:
DOMException
-
createEntityReference
public EntityReference createEntityReference(String name) throws DOMException
- Specified by:
createEntityReference
in interfaceDocument
- Throws:
DOMException
-
getElementsByTagName
public NodeList getElementsByTagName(String tagname)
- Specified by:
getElementsByTagName
in interfaceDocument
-
importNode
public Node importNode(Node importedNode, boolean deep) throws DOMException
- Specified by:
importNode
in interfaceDocument
- Throws:
DOMException
-
createElementNS
public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException
- Specified by:
createElementNS
in interfaceDocument
- Throws:
DOMException
-
createAttributeNS
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
- Specified by:
createAttributeNS
in interfaceDocument
- Throws:
DOMException
-
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
- Specified by:
getElementsByTagNameNS
in interfaceDocument
-
getElementById
public Element getElementById(String elementId)
- Specified by:
getElementById
in interfaceDocument
-
appendChild
public Node appendChild(Node newChild) throws DOMException
- Specified by:
appendChild
in interfaceNode
- Throws:
DOMException
-
doCloneNode
protected SOAPPartImpl doCloneNode()
-
getAttributes
public NamedNodeMap getAttributes()
- Specified by:
getAttributes
in interfaceNode
-
getChildNodes
public NodeList getChildNodes()
- Specified by:
getChildNodes
in interfaceNode
-
getFirstChild
public Node getFirstChild()
- Specified by:
getFirstChild
in interfaceNode
-
getLastChild
public Node getLastChild()
- Specified by:
getLastChild
in interfaceNode
-
getLocalName
public String getLocalName()
- Specified by:
getLocalName
in interfaceNode
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURI
in interfaceNode
-
getNextSibling
public Node getNextSibling()
- Specified by:
getNextSibling
in interfaceNode
-
getNodeName
public String getNodeName()
- Specified by:
getNodeName
in interfaceNode
-
getNodeType
public short getNodeType()
- Specified by:
getNodeType
in interfaceNode
-
getNodeValue
public String getNodeValue() throws DOMException
- Specified by:
getNodeValue
in interfaceNode
- Throws:
DOMException
-
getOwnerDocument
public Document getOwnerDocument()
- Specified by:
getOwnerDocument
in interfaceNode
-
getParentNode
public Node getParentNode()
- Specified by:
getParentNode
in interfaceNode
-
getPreviousSibling
public Node getPreviousSibling()
- Specified by:
getPreviousSibling
in interfaceNode
-
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributes
in interfaceNode
-
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodes
in interfaceNode
-
insertBefore
public Node insertBefore(Node arg0, Node arg1) throws DOMException
- Specified by:
insertBefore
in interfaceNode
- Throws:
DOMException
-
isSupported
public boolean isSupported(String arg0, String arg1)
- Specified by:
isSupported
in interfaceNode
-
removeChild
public Node removeChild(Node arg0) throws DOMException
- Specified by:
removeChild
in interfaceNode
- Throws:
DOMException
-
replaceChild
public Node replaceChild(Node arg0, Node arg1) throws DOMException
- Specified by:
replaceChild
in interfaceNode
- Throws:
DOMException
-
setNodeValue
public void setNodeValue(String arg0) throws DOMException
- Specified by:
setNodeValue
in interfaceNode
- Throws:
DOMException
-
setPrefix
public void setPrefix(String arg0) throws DOMException
- Specified by:
setPrefix
in interfaceNode
- Throws:
DOMException
-
lookForXmlDecl
protected XMLDeclarationParser lookForXmlDecl() throws jakarta.xml.soap.SOAPException
- Throws:
jakarta.xml.soap.SOAPException
-
setSourceCharsetEncoding
public void setSourceCharsetEncoding(String charset)
-
renameNode
public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException
- Specified by:
renameNode
in interfaceDocument
- Throws:
DOMException
-
normalizeDocument
public void normalizeDocument()
- Specified by:
normalizeDocument
in interfaceDocument
-
getDomConfig
public DOMConfiguration getDomConfig()
- Specified by:
getDomConfig
in interfaceDocument
-
adoptNode
public Node adoptNode(Node source) throws DOMException
- Specified by:
adoptNode
in interfaceDocument
- Throws:
DOMException
-
setDocumentURI
public void setDocumentURI(String documentURI)
- Specified by:
setDocumentURI
in interfaceDocument
-
getDocumentURI
public String getDocumentURI()
- Specified by:
getDocumentURI
in interfaceDocument
-
setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking)
- Specified by:
setStrictErrorChecking
in interfaceDocument
-
getInputEncoding
public String getInputEncoding()
- Specified by:
getInputEncoding
in interfaceDocument
-
getXmlEncoding
public String getXmlEncoding()
- Specified by:
getXmlEncoding
in interfaceDocument
-
getXmlStandalone
public boolean getXmlStandalone()
- Specified by:
getXmlStandalone
in interfaceDocument
-
setXmlStandalone
public void setXmlStandalone(boolean xmlStandalone) throws DOMException
- Specified by:
setXmlStandalone
in interfaceDocument
- Throws:
DOMException
-
getXmlVersion
public String getXmlVersion()
- Specified by:
getXmlVersion
in interfaceDocument
-
setXmlVersion
public void setXmlVersion(String xmlVersion) throws DOMException
- Specified by:
setXmlVersion
in interfaceDocument
- Throws:
DOMException
-
getStrictErrorChecking
public boolean getStrictErrorChecking()
- Specified by:
getStrictErrorChecking
in interfaceDocument
-
getBaseURI
public String getBaseURI()
- Specified by:
getBaseURI
in interfaceNode
-
compareDocumentPosition
public short compareDocumentPosition(Node other) throws DOMException
- Specified by:
compareDocumentPosition
in interfaceNode
- Throws:
DOMException
-
getTextContent
public String getTextContent() throws DOMException
- Specified by:
getTextContent
in interfaceNode
- Throws:
DOMException
-
setTextContent
public void setTextContent(String textContent) throws DOMException
- Specified by:
setTextContent
in interfaceNode
- Throws:
DOMException
-
isSameNode
public boolean isSameNode(Node other)
- Specified by:
isSameNode
in interfaceNode
-
lookupPrefix
public String lookupPrefix(String namespaceURI)
- Specified by:
lookupPrefix
in interfaceNode
-
isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)
- Specified by:
isDefaultNamespace
in interfaceNode
-
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
- Specified by:
lookupNamespaceURI
in interfaceNode
-
isEqualNode
public boolean isEqualNode(Node arg)
- Specified by:
isEqualNode
in interfaceNode
-
getFeature
public Object getFeature(String feature, String version)
- Specified by:
getFeature
in interfaceNode
-
setUserData
public Object setUserData(String key, Object data, UserDataHandler handler)
- Specified by:
setUserData
in interfaceNode
-
getUserData
public Object getUserData(String key)
- Specified by:
getUserData
in interfaceNode
-
recycleNode
public void recycleNode()
- Specified by:
recycleNode
in interfacejakarta.xml.soap.Node
-
getValue
public String getValue()
- Specified by:
getValue
in interfacejakarta.xml.soap.Node
-
setValue
public void setValue(String value)
- Specified by:
setValue
in interfacejakarta.xml.soap.Node
-
setParentElement
public void setParentElement(jakarta.xml.soap.SOAPElement parent) throws jakarta.xml.soap.SOAPException
- Specified by:
setParentElement
in interfacejakarta.xml.soap.Node
- Throws:
jakarta.xml.soap.SOAPException
-
getParentElement
public jakarta.xml.soap.SOAPElement getParentElement()
- Specified by:
getParentElement
in interfacejakarta.xml.soap.Node
-
detachNode
public void detachNode()
- Specified by:
detachNode
in interfacejakarta.xml.soap.Node
-
getSourceCharsetEncoding
public String getSourceCharsetEncoding()
-
getSOAPNamespace
public abstract String getSOAPNamespace()
-
-