Package com.sun.xml.messaging.saaj.soap
Class SOAPPartImpl
- java.lang.Object
-
- jakarta.xml.soap.SOAPPart
-
- com.sun.xml.messaging.saaj.soap.SOAPPartImpl
-
- All Implemented Interfaces:
SOAPDocument,jakarta.xml.soap.Node,Document,Node
- Direct Known Subclasses:
SOAPPart1_1Impl,SOAPPart1_2Impl
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 (anil@sun.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected SOAPDocumentImpldocumentprotected Envelopeenvelopeprotected jakarta.xml.soap.MimeHeadersheadersprotected static Loggerlogprotected MessageImplmessageReference to containing message (may be null)protected booleanomitXmlDeclprotected Sourcesourceprotected StringsourceCharsetEncoding-
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 protectedSOAPPartImpl()protectedSOAPPartImpl(MessageImpl message)
-
Method Summary
-
-
-
Field Detail
-
log
protected static final Logger log
-
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:
getEnvelopein 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:
removeAllMimeHeadersin classjakarta.xml.soap.SOAPPart
-
removeMimeHeader
public void removeMimeHeader(String header)
- Specified by:
removeMimeHeaderin classjakarta.xml.soap.SOAPPart
-
getMimeHeader
public String[] getMimeHeader(String name)
- Specified by:
getMimeHeaderin classjakarta.xml.soap.SOAPPart
-
setMimeHeader
public void setMimeHeader(String name, String value)
- Specified by:
setMimeHeaderin classjakarta.xml.soap.SOAPPart
-
addMimeHeader
public void addMimeHeader(String name, String value)
- Specified by:
addMimeHeaderin classjakarta.xml.soap.SOAPPart
-
getAllMimeHeaders
public Iterator<jakarta.xml.soap.MimeHeader> getAllMimeHeaders()
- Specified by:
getAllMimeHeadersin classjakarta.xml.soap.SOAPPart
-
getMatchingMimeHeaders
public Iterator<jakarta.xml.soap.MimeHeader> getMatchingMimeHeaders(String[] names)
- Specified by:
getMatchingMimeHeadersin classjakarta.xml.soap.SOAPPart
-
getNonMatchingMimeHeaders
public Iterator<jakarta.xml.soap.MimeHeader> getNonMatchingMimeHeaders(String[] names)
- Specified by:
getNonMatchingMimeHeadersin classjakarta.xml.soap.SOAPPart
-
getContent
public Source getContent() throws jakarta.xml.soap.SOAPException
- Specified by:
getContentin classjakarta.xml.soap.SOAPPart- Throws:
jakarta.xml.soap.SOAPException
-
setContent
public void setContent(Source source) throws jakarta.xml.soap.SOAPException
- Specified by:
setContentin classjakarta.xml.soap.SOAPPart- Throws:
jakarta.xml.soap.SOAPException
-
getContentAsStream
public InputStream getContentAsStream() throws IOException
- Throws:
IOException
-
getDocument
public SOAPDocumentImpl getDocument()
- Specified by:
getDocumentin interfaceSOAPDocument
-
getSOAPPart
public SOAPPartImpl getSOAPPart()
- Specified by:
getSOAPPartin interfaceSOAPDocument
-
getDoctype
public DocumentType getDoctype()
- Specified by:
getDoctypein interfaceDocument
-
getImplementation
public DOMImplementation getImplementation()
- Specified by:
getImplementationin interfaceDocument
-
getDocumentElement
public Element getDocumentElement()
- Specified by:
getDocumentElementin interfaceDocument
-
doGetDocumentElement
protected void doGetDocumentElement()
-
createElement
public Element createElement(String tagName) throws DOMException
- Specified by:
createElementin interfaceDocument- Throws:
DOMException
-
createDocumentFragment
public DocumentFragment createDocumentFragment()
- Specified by:
createDocumentFragmentin interfaceDocument
-
createTextNode
public Text createTextNode(String data)
- Specified by:
createTextNodein interfaceDocument
-
createComment
public Comment createComment(String data)
- Specified by:
createCommentin interfaceDocument
-
createCDATASection
public CDATASection createCDATASection(String data) throws DOMException
- Specified by:
createCDATASectionin interfaceDocument- Throws:
DOMException
-
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
- Specified by:
createProcessingInstructionin interfaceDocument- Throws:
DOMException
-
createAttribute
public Attr createAttribute(String name) throws DOMException
- Specified by:
createAttributein interfaceDocument- Throws:
DOMException
-
createEntityReference
public EntityReference createEntityReference(String name) throws DOMException
- Specified by:
createEntityReferencein interfaceDocument- Throws:
DOMException
-
getElementsByTagName
public NodeList getElementsByTagName(String tagname)
- Specified by:
getElementsByTagNamein interfaceDocument
-
importNode
public Node importNode(Node importedNode, boolean deep) throws DOMException
- Specified by:
importNodein interfaceDocument- Throws:
DOMException
-
createElementNS
public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException
- Specified by:
createElementNSin interfaceDocument- Throws:
DOMException
-
createAttributeNS
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
- Specified by:
createAttributeNSin interfaceDocument- Throws:
DOMException
-
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
- Specified by:
getElementsByTagNameNSin interfaceDocument
-
getElementById
public Element getElementById(String elementId)
- Specified by:
getElementByIdin interfaceDocument
-
appendChild
public Node appendChild(Node newChild) throws DOMException
- Specified by:
appendChildin interfaceNode- Throws:
DOMException
-
doCloneNode
protected SOAPPartImpl doCloneNode()
-
getAttributes
public NamedNodeMap getAttributes()
- Specified by:
getAttributesin interfaceNode
-
getChildNodes
public NodeList getChildNodes()
- Specified by:
getChildNodesin interfaceNode
-
getFirstChild
public Node getFirstChild()
- Specified by:
getFirstChildin interfaceNode
-
getLastChild
public Node getLastChild()
- Specified by:
getLastChildin interfaceNode
-
getLocalName
public String getLocalName()
- Specified by:
getLocalNamein interfaceNode
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURIin interfaceNode
-
getNextSibling
public Node getNextSibling()
- Specified by:
getNextSiblingin interfaceNode
-
getNodeName
public String getNodeName()
- Specified by:
getNodeNamein interfaceNode
-
getNodeType
public short getNodeType()
- Specified by:
getNodeTypein interfaceNode
-
getNodeValue
public String getNodeValue() throws DOMException
- Specified by:
getNodeValuein interfaceNode- Throws:
DOMException
-
getOwnerDocument
public Document getOwnerDocument()
- Specified by:
getOwnerDocumentin interfaceNode
-
getParentNode
public Node getParentNode()
- Specified by:
getParentNodein interfaceNode
-
getPreviousSibling
public Node getPreviousSibling()
- Specified by:
getPreviousSiblingin interfaceNode
-
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributesin interfaceNode
-
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodesin interfaceNode
-
insertBefore
public Node insertBefore(Node arg0, Node arg1) throws DOMException
- Specified by:
insertBeforein interfaceNode- Throws:
DOMException
-
isSupported
public boolean isSupported(String arg0, String arg1)
- Specified by:
isSupportedin interfaceNode
-
removeChild
public Node removeChild(Node arg0) throws DOMException
- Specified by:
removeChildin interfaceNode- Throws:
DOMException
-
replaceChild
public Node replaceChild(Node arg0, Node arg1) throws DOMException
- Specified by:
replaceChildin interfaceNode- Throws:
DOMException
-
setNodeValue
public void setNodeValue(String arg0) throws DOMException
- Specified by:
setNodeValuein interfaceNode- Throws:
DOMException
-
setPrefix
public void setPrefix(String arg0) throws DOMException
- Specified by:
setPrefixin 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:
renameNodein interfaceDocument- Throws:
DOMException
-
normalizeDocument
public void normalizeDocument()
- Specified by:
normalizeDocumentin interfaceDocument
-
getDomConfig
public DOMConfiguration getDomConfig()
- Specified by:
getDomConfigin interfaceDocument
-
adoptNode
public Node adoptNode(Node source) throws DOMException
- Specified by:
adoptNodein interfaceDocument- Throws:
DOMException
-
setDocumentURI
public void setDocumentURI(String documentURI)
- Specified by:
setDocumentURIin interfaceDocument
-
getDocumentURI
public String getDocumentURI()
- Specified by:
getDocumentURIin interfaceDocument
-
setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking)
- Specified by:
setStrictErrorCheckingin interfaceDocument
-
getInputEncoding
public String getInputEncoding()
- Specified by:
getInputEncodingin interfaceDocument
-
getXmlEncoding
public String getXmlEncoding()
- Specified by:
getXmlEncodingin interfaceDocument
-
getXmlStandalone
public boolean getXmlStandalone()
- Specified by:
getXmlStandalonein interfaceDocument
-
setXmlStandalone
public void setXmlStandalone(boolean xmlStandalone) throws DOMException- Specified by:
setXmlStandalonein interfaceDocument- Throws:
DOMException
-
getXmlVersion
public String getXmlVersion()
- Specified by:
getXmlVersionin interfaceDocument
-
setXmlVersion
public void setXmlVersion(String xmlVersion) throws DOMException
- Specified by:
setXmlVersionin interfaceDocument- Throws:
DOMException
-
getStrictErrorChecking
public boolean getStrictErrorChecking()
- Specified by:
getStrictErrorCheckingin interfaceDocument
-
getBaseURI
public String getBaseURI()
- Specified by:
getBaseURIin interfaceNode
-
compareDocumentPosition
public short compareDocumentPosition(Node other) throws DOMException
- Specified by:
compareDocumentPositionin interfaceNode- Throws:
DOMException
-
getTextContent
public String getTextContent() throws DOMException
- Specified by:
getTextContentin interfaceNode- Throws:
DOMException
-
setTextContent
public void setTextContent(String textContent) throws DOMException
- Specified by:
setTextContentin interfaceNode- Throws:
DOMException
-
isSameNode
public boolean isSameNode(Node other)
- Specified by:
isSameNodein interfaceNode
-
lookupPrefix
public String lookupPrefix(String namespaceURI)
- Specified by:
lookupPrefixin interfaceNode
-
isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)
- Specified by:
isDefaultNamespacein interfaceNode
-
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
- Specified by:
lookupNamespaceURIin interfaceNode
-
isEqualNode
public boolean isEqualNode(Node arg)
- Specified by:
isEqualNodein interfaceNode
-
getFeature
public Object getFeature(String feature, String version)
- Specified by:
getFeaturein interfaceNode
-
setUserData
public Object setUserData(String key, Object data, UserDataHandler handler)
- Specified by:
setUserDatain interfaceNode
-
getUserData
public Object getUserData(String key)
- Specified by:
getUserDatain interfaceNode
-
recycleNode
public void recycleNode()
- Specified by:
recycleNodein interfacejakarta.xml.soap.Node
-
getValue
public String getValue()
- Specified by:
getValuein interfacejakarta.xml.soap.Node
-
setValue
public void setValue(String value)
- Specified by:
setValuein interfacejakarta.xml.soap.Node
-
setParentElement
public void setParentElement(jakarta.xml.soap.SOAPElement parent) throws jakarta.xml.soap.SOAPException- Specified by:
setParentElementin interfacejakarta.xml.soap.Node- Throws:
jakarta.xml.soap.SOAPException
-
getParentElement
public jakarta.xml.soap.SOAPElement getParentElement()
- Specified by:
getParentElementin interfacejakarta.xml.soap.Node
-
detachNode
public void detachNode()
- Specified by:
detachNodein interfacejakarta.xml.soap.Node
-
getSourceCharsetEncoding
public String getSourceCharsetEncoding()
-
getSOAPNamespace
public abstract String getSOAPNamespace()
-
-