Package com.sun.xml.messaging.saaj.soap
Class SOAPPartImpl
java.lang.Object
javax.xml.soap.SOAPPart
com.sun.xml.messaging.saaj.soap.SOAPPartImpl
- All Implemented Interfaces:
SOAPDocument,javax.xml.soap.Node,Document,Node
- Direct Known Subclasses:
SOAPPart1_1Impl,SOAPPart1_2Impl
SOAPPartImpl is the first attachment. This contains the XML/SOAP document.
- Author:
- Anil Vijendran (anil@sun.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SOAPDocumentImplprotected Envelopeprotected javax.xml.soap.MimeHeadersprotected static final Loggerprotected MessageImplReference to containing message (may be null)protected booleanprotected Sourceprotected StringFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMimeHeader(String name, String value) appendChild(Node newChild) cloneNode(boolean deep) shortcompareDocumentPosition(Node other) createAttribute(String name) createAttributeNS(String namespaceURI, String qualifiedName) createCDATASection(String data) createComment(String data) createElement(String tagName) createElementNS(String namespaceURI, String qualifiedName) protected abstract EnvelopecreateEmptyEnvelope(String prefix) createEntityReference(String name) protected abstract EnvelopecreateProcessingInstruction(String target, String data) createTextNode(String data) voidprotected SOAPPartImplprotected voidprotected abstract SOAPPartImplIterator<javax.xml.soap.MimeHeader>protected abstract Stringprotected StringgetElementById(String elementId) getElementsByTagName(String tagname) getElementsByTagNameNS(String namespaceURI, String localName) javax.xml.soap.SOAPEnvelopegetFeature(String feature, String version) Iterator<javax.xml.soap.MimeHeader>getMatchingMimeHeaders(String[] names) String[]getMimeHeader(String name) shortIterator<javax.xml.soap.MimeHeader>getNonMatchingMimeHeaders(String[] names) javax.xml.soap.SOAPElementabstract StringbooleangetUserData(String key) getValue()booleanbooleanbooleanimportNode(Node importedNode, boolean deep) insertBefore(Node arg0, Node arg1) booleanisDefaultNamespace(String namespaceURI) booleanisEqualNode(Node arg) booleanbooleanisSameNode(Node other) booleanisSupported(String arg0, String arg1) protected voidprotected XMLDeclarationParserlookupNamespaceURI(String prefix) lookupPrefix(String namespaceURI) voidvoidvoidvoidremoveChild(Node arg0) voidremoveMimeHeader(String header) renameNode(Node n, String namespaceURI, String qualifiedName) replaceChild(Node arg0, Node arg1) voidsetContent(Source source) voidsetDocumentURI(String documentURI) voidsetMimeHeader(String name, String value) voidsetNodeValue(String arg0) voidsetParentElement(javax.xml.soap.SOAPElement parent) voidvoidsetSourceCharsetEncoding(String charset) voidsetStrictErrorChecking(boolean strictErrorChecking) voidsetTextContent(String textContent) setUserData(String key, Object data, UserDataHandler handler) voidvoidsetXmlStandalone(boolean xmlStandalone) voidsetXmlVersion(String xmlVersion) Methods inherited from class javax.xml.soap.SOAPPart
getContentId, getContentLocation, setContentId, setContentLocation
-
Field Details
-
log
-
headers
protected javax.xml.soap.MimeHeaders headers -
envelope
-
source
-
document
-
omitXmlDecl
protected boolean omitXmlDecl -
sourceCharsetEncoding
-
message
Reference to containing message (may be null)
-
-
Constructor Details
-
SOAPPartImpl
protected SOAPPartImpl() -
SOAPPartImpl
-
-
Method Details
-
getContentType
-
createEnvelopeFromSource
- Throws:
javax.xml.soap.SOAPException
-
createEmptyEnvelope
- Throws:
javax.xml.soap.SOAPException
-
duplicateType
-
getContentTypeString
-
isFastInfoset
public boolean isFastInfoset() -
getEnvelope
public javax.xml.soap.SOAPEnvelope getEnvelope() throws javax.xml.soap.SOAPException- Specified by:
getEnvelopein classjavax.xml.soap.SOAPPart- Throws:
javax.xml.soap.SOAPException
-
lookForEnvelope
protected void lookForEnvelope() throws javax.xml.soap.SOAPException- Throws:
javax.xml.soap.SOAPException
-
removeAllMimeHeaders
public void removeAllMimeHeaders()- Specified by:
removeAllMimeHeadersin classjavax.xml.soap.SOAPPart
-
removeMimeHeader
- Specified by:
removeMimeHeaderin classjavax.xml.soap.SOAPPart
-
getMimeHeader
- Specified by:
getMimeHeaderin classjavax.xml.soap.SOAPPart
-
setMimeHeader
- Specified by:
setMimeHeaderin classjavax.xml.soap.SOAPPart
-
addMimeHeader
- Specified by:
addMimeHeaderin classjavax.xml.soap.SOAPPart
-
getAllMimeHeaders
- Specified by:
getAllMimeHeadersin classjavax.xml.soap.SOAPPart
-
getMatchingMimeHeaders
- Specified by:
getMatchingMimeHeadersin classjavax.xml.soap.SOAPPart
-
getNonMatchingMimeHeaders
- Specified by:
getNonMatchingMimeHeadersin classjavax.xml.soap.SOAPPart
-
getContent
- Specified by:
getContentin classjavax.xml.soap.SOAPPart- Throws:
javax.xml.soap.SOAPException
-
setContent
- Specified by:
setContentin classjavax.xml.soap.SOAPPart- Throws:
javax.xml.soap.SOAPException
-
getContentAsStream
- Throws:
IOException
-
getDocument
- Specified by:
getDocumentin interfaceSOAPDocument
-
getSOAPPart
- Specified by:
getSOAPPartin interfaceSOAPDocument
-
getDoctype
- Specified by:
getDoctypein interfaceDocument
-
getImplementation
- Specified by:
getImplementationin interfaceDocument
-
getDocumentElement
- Specified by:
getDocumentElementin interfaceDocument
-
doGetDocumentElement
protected void doGetDocumentElement() -
createElement
- Specified by:
createElementin interfaceDocument- Throws:
DOMException
-
createDocumentFragment
- Specified by:
createDocumentFragmentin interfaceDocument
-
createTextNode
- Specified by:
createTextNodein interfaceDocument
-
createComment
- Specified by:
createCommentin interfaceDocument
-
createCDATASection
- Specified by:
createCDATASectionin interfaceDocument- Throws:
DOMException
-
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException - Specified by:
createProcessingInstructionin interfaceDocument- Throws:
DOMException
-
createAttribute
- Specified by:
createAttributein interfaceDocument- Throws:
DOMException
-
createEntityReference
- Specified by:
createEntityReferencein interfaceDocument- Throws:
DOMException
-
getElementsByTagName
- Specified by:
getElementsByTagNamein interfaceDocument
-
importNode
- Specified by:
importNodein interfaceDocument- Throws:
DOMException
-
createElementNS
- Specified by:
createElementNSin interfaceDocument- Throws:
DOMException
-
createAttributeNS
- Specified by:
createAttributeNSin interfaceDocument- Throws:
DOMException
-
getElementsByTagNameNS
- Specified by:
getElementsByTagNameNSin interfaceDocument
-
getElementById
- Specified by:
getElementByIdin interfaceDocument
-
appendChild
- Specified by:
appendChildin interfaceNode- Throws:
DOMException
-
cloneNode
-
doCloneNode
-
getAttributes
- Specified by:
getAttributesin interfaceNode
-
getChildNodes
- Specified by:
getChildNodesin interfaceNode
-
getFirstChild
- Specified by:
getFirstChildin interfaceNode
-
getLastChild
- Specified by:
getLastChildin interfaceNode
-
getLocalName
- Specified by:
getLocalNamein interfaceNode
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNode
-
getNextSibling
- Specified by:
getNextSiblingin interfaceNode
-
getNodeName
- Specified by:
getNodeNamein interfaceNode
-
getNodeType
public short getNodeType()- Specified by:
getNodeTypein interfaceNode
-
getNodeValue
- Specified by:
getNodeValuein interfaceNode- Throws:
DOMException
-
getOwnerDocument
- Specified by:
getOwnerDocumentin interfaceNode
-
getParentNode
- Specified by:
getParentNodein interfaceNode
-
getPrefix
-
getPreviousSibling
- Specified by:
getPreviousSiblingin interfaceNode
-
hasAttributes
public boolean hasAttributes()- Specified by:
hasAttributesin interfaceNode
-
hasChildNodes
public boolean hasChildNodes()- Specified by:
hasChildNodesin interfaceNode
-
insertBefore
- Specified by:
insertBeforein interfaceNode- Throws:
DOMException
-
isSupported
- Specified by:
isSupportedin interfaceNode
-
normalize
public void normalize() -
removeChild
- Specified by:
removeChildin interfaceNode- Throws:
DOMException
-
replaceChild
- Specified by:
replaceChildin interfaceNode- Throws:
DOMException
-
setNodeValue
- Specified by:
setNodeValuein interfaceNode- Throws:
DOMException
-
setPrefix
- Specified by:
setPrefixin interfaceNode- Throws:
DOMException
-
lookForXmlDecl
- Throws:
javax.xml.soap.SOAPException
-
setSourceCharsetEncoding
-
renameNode
- Specified by:
renameNodein interfaceDocument- Throws:
DOMException
-
normalizeDocument
public void normalizeDocument()- Specified by:
normalizeDocumentin interfaceDocument
-
getDomConfig
- Specified by:
getDomConfigin interfaceDocument
-
adoptNode
- Specified by:
adoptNodein interfaceDocument- Throws:
DOMException
-
setDocumentURI
- Specified by:
setDocumentURIin interfaceDocument
-
getDocumentURI
- Specified by:
getDocumentURIin interfaceDocument
-
setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking) - Specified by:
setStrictErrorCheckingin interfaceDocument
-
getInputEncoding
- Specified by:
getInputEncodingin interfaceDocument
-
getXmlEncoding
- Specified by:
getXmlEncodingin interfaceDocument
-
getXmlStandalone
public boolean getXmlStandalone()- Specified by:
getXmlStandalonein interfaceDocument
-
setXmlStandalone
- Specified by:
setXmlStandalonein interfaceDocument- Throws:
DOMException
-
getXmlVersion
- Specified by:
getXmlVersionin interfaceDocument
-
setXmlVersion
- Specified by:
setXmlVersionin interfaceDocument- Throws:
DOMException
-
getStrictErrorChecking
public boolean getStrictErrorChecking()- Specified by:
getStrictErrorCheckingin interfaceDocument
-
getBaseURI
- Specified by:
getBaseURIin interfaceNode
-
compareDocumentPosition
- Specified by:
compareDocumentPositionin interfaceNode- Throws:
DOMException
-
getTextContent
- Specified by:
getTextContentin interfaceNode- Throws:
DOMException
-
setTextContent
- Specified by:
setTextContentin interfaceNode- Throws:
DOMException
-
isSameNode
- Specified by:
isSameNodein interfaceNode
-
lookupPrefix
- Specified by:
lookupPrefixin interfaceNode
-
isDefaultNamespace
- Specified by:
isDefaultNamespacein interfaceNode
-
lookupNamespaceURI
- Specified by:
lookupNamespaceURIin interfaceNode
-
isEqualNode
- Specified by:
isEqualNodein interfaceNode
-
getFeature
- Specified by:
getFeaturein interfaceNode
-
setUserData
- Specified by:
setUserDatain interfaceNode
-
getUserData
- Specified by:
getUserDatain interfaceNode
-
recycleNode
public void recycleNode()- Specified by:
recycleNodein interfacejavax.xml.soap.Node
-
getValue
- Specified by:
getValuein interfacejavax.xml.soap.Node
-
setValue
- Specified by:
setValuein interfacejavax.xml.soap.Node
-
setParentElement
public void setParentElement(javax.xml.soap.SOAPElement parent) throws javax.xml.soap.SOAPException - Specified by:
setParentElementin interfacejavax.xml.soap.Node- Throws:
javax.xml.soap.SOAPException
-
getParentElement
public javax.xml.soap.SOAPElement getParentElement()- Specified by:
getParentElementin interfacejavax.xml.soap.Node
-
detachNode
public void detachNode()- Specified by:
detachNodein interfacejavax.xml.soap.Node
-
getSourceCharsetEncoding
-
getSOAPNamespace
-