public class SOAPPartImpl extends SOAPPart
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
Modifier and Type | Method and Description |
---|---|
void |
addMimeHeader(String name,
String value)
Creates a
MimeHeader object with the specified
name and value and adds it to this SOAPPart object. |
Node |
adoptNode(Node source) |
Node |
appendChild(Node newChild) |
Node |
cloneNode(boolean deep) |
short |
compareDocumentPosition(Node other) |
Attr |
createAttribute(String name) |
Attr |
createAttributeNS(String namespaceURI,
String qualifiedName) |
CDATASection |
createCDATASection(String data) |
Comment |
createComment(String data) |
DocumentFragment |
createDocumentFragment() |
Element |
createElement(String tagName) |
Element |
createElementNS(String namespaceURI,
String qualifiedName) |
EntityReference |
createEntityReference(String name) |
ProcessingInstruction |
createProcessingInstruction(String target,
String data) |
Text |
createTextNode(String data) |
void |
detachNode()
Removes this
Node object from the tree. |
Iterator |
getAllMimeHeaders()
Retrieves all the headers for this
SOAPPart object
as an iterator over the MimeHeader objects. |
NamedNodeMap |
getAttributes() |
String |
getBaseURI() |
NodeList |
getChildNodes() |
Source |
getContent()
Returns the content of the SOAPEnvelope as a JAXP
Source
object. |
DocumentType |
getDoctype() |
Element |
getDocumentElement() |
String |
getDocumentURI() |
DOMConfiguration |
getDomConfig() |
Element |
getElementById(String elementId) |
NodeList |
getElementsByTagName(String tagname) |
NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName) |
SOAPEnvelope |
getEnvelope()
Gets the
SOAPEnvelope object associated with this
SOAPPart object. |
Object |
getFeature(String feature,
String version) |
Node |
getFirstChild() |
DOMImplementation |
getImplementation() |
String |
getInputEncoding() |
Node |
getLastChild() |
String |
getLocalName() |
Iterator |
getMatchingMimeHeaders(String[] names)
Retrieves all
MimeHeader objects that match a name in
the given array. |
String[] |
getMimeHeader(String name)
Gets all the values of the
MimeHeader object
in this SOAPPart object that
is identified by the given String . |
String |
getNamespaceURI() |
Node |
getNextSibling() |
String |
getNodeName() |
short |
getNodeType() |
String |
getNodeValue() |
Iterator |
getNonMatchingMimeHeaders(String[] names)
Retrieves all
MimeHeader objects whose name does
not match a name in the given array. |
Document |
getOwnerDocument() |
SOAPElement |
getParentElement()
Returns the parent element of this
Node object. |
Node |
getParentNode() |
String |
getPrefix() |
Node |
getPreviousSibling() |
SOAPMessage |
getSOAPMessage() |
boolean |
getStrictErrorChecking() |
String |
getTextContent() |
Object |
getUserData(String key) |
String |
getValue()
Returns the value of this node if this is a
Text node or the
value of the immediate child of this node otherwise. |
String |
getXmlEncoding() |
boolean |
getXmlStandalone() |
String |
getXmlVersion() |
boolean |
hasAttributes() |
boolean |
hasChildNodes() |
Node |
importNode(Node importedNode,
boolean deep) |
Node |
insertBefore(Node newChild,
Node refChild) |
boolean |
isDefaultNamespace(String namespaceURI) |
boolean |
isEqualNode(Node arg) |
boolean |
isSameNode(Node other) |
boolean |
isSupported(String feature,
String version) |
String |
lookupNamespaceURI(String prefix) |
String |
lookupPrefix(String namespaceURI) |
void |
normalize() |
void |
normalizeDocument() |
void |
recycleNode()
Notifies the implementation that this
Node
object is no longer being used by the application and that the
implementation is free to reuse this object for nodes that may
be created later. |
void |
removeAllMimeHeaders()
Removes all the
MimeHeader objects for this
SOAPEnvelope object. |
Node |
removeChild(Node oldChild) |
void |
removeMimeHeader(String s)
Removes all MIME headers that match the given name.
|
Node |
renameNode(Node n,
String namespaceURI,
String qualifiedName) |
Node |
replaceChild(Node newChild,
Node oldChild) |
void |
setContent(Source source)
Sets the content of the
SOAPEnvelope object with the data
from the given Source object. |
void |
setDocumentURI(String documentURI) |
void |
setEnvelope(SOAPEnvelope soapEnvelope) |
void |
setMimeHeader(String name,
String value)
Changes the first header entry that matches the given header name
so that its value is the given value, adding a new header with the
given name and value if no
existing header is a match.
|
void |
setNodeValue(String nodeValue) |
void |
setParentElement(SOAPElement parent)
Sets the parent of this
Node object to the given
SOAPElement object. |
void |
setPrefix(String s) |
void |
setStrictErrorChecking(boolean strictErrorChecking) |
void |
setTextContent(String textContent) |
Object |
setUserData(String key,
Object data,
UserDataHandler handler) |
void |
setValue(String value)
If this is a Text node then this method will set its value,
otherwise it sets the value of the immediate (Text) child of this node.
|
void |
setXmlStandalone(boolean xmlStandalone) |
void |
setXmlVersion(String xmlVersion) |
getContentId, getContentLocation, setContentId, setContentLocation
public SOAPMessage getSOAPMessage()
public SOAPEnvelope getEnvelope() throws SOAPException
SOAPPart
SOAPEnvelope
object associated with this
SOAPPart
object. Once the SOAP envelope is obtained, it
can be used to get its contents.getEnvelope
in class SOAPPart
SOAPEnvelope
object for this
SOAPPart
objectSOAPException
- if there is a SOAP errorpublic void setEnvelope(SOAPEnvelope soapEnvelope)
public void removeMimeHeader(String s)
SOAPPart
removeMimeHeader
in class SOAPPart
s
- a String
giving the name of the MIME header(s) to
be removedpublic void removeAllMimeHeaders()
SOAPPart
MimeHeader
objects for this
SOAPEnvelope
object.removeAllMimeHeaders
in class SOAPPart
public String[] getMimeHeader(String name)
SOAPPart
MimeHeader
object
in this SOAPPart
object that
is identified by the given String
.getMimeHeader
in class SOAPPart
name
- the name of the header; example: "Content-Type"String
array giving all the values for the
specified headerSOAPPart.setMimeHeader(java.lang.String, java.lang.String)
public void setMimeHeader(String name, String value)
SOAPPart
Note that RFC822 headers can contain only US-ASCII characters.
setMimeHeader
in class SOAPPart
name
- a String
giving the header name
for which to searchvalue
- a String
giving the value to be set.
This value will be substituted for the current value(s)
of the first header that is a match if there is one.
If there is no match, this value will be the value for
a new MimeHeader
object.SOAPPart.getMimeHeader(java.lang.String)
public void addMimeHeader(String name, String value)
SOAPPart
MimeHeader
object with the specified
name and value and adds it to this SOAPPart
object.
If a MimeHeader
with the specified name already
exists, this method adds the specified value to the already
existing value(s).
Note that RFC822 headers can contain only US-ASCII characters.
addMimeHeader
in class SOAPPart
name
- a String
giving the header namevalue
- a String
giving the value to be set
or addedpublic Iterator getAllMimeHeaders()
SOAPPart
SOAPPart
object
as an iterator over the MimeHeader
objects.getAllMimeHeaders
in class SOAPPart
Iterator
object with all of the Mime
headers for this SOAPPart
objectpublic Iterator getMatchingMimeHeaders(String[] names)
SOAPPart
MimeHeader
objects that match a name in
the given array.getMatchingMimeHeaders
in class SOAPPart
names
- a String
array with the name(s) of the
MIME headers to be returnedIterator
objectpublic Iterator getNonMatchingMimeHeaders(String[] names)
SOAPPart
MimeHeader
objects whose name does
not match a name in the given array.getNonMatchingMimeHeaders
in class SOAPPart
names
- a String
array with the name(s) of the
MIME headers not to be returnedSOAPPart
object
except those that match one of the names in the
given array. The nonmatching MIME headers are returned as an
Iterator
object.public void setContent(Source source) throws SOAPException
SOAPPart
SOAPEnvelope
object with the data
from the given Source
object. This Source
must contain a valid SOAP document.setContent
in class SOAPPart
source
- the javax.xml.transform.Source
object with the
data to be setSOAPException
- if there is a problem in setting the sourceSOAPPart.getContent()
public Source getContent() throws SOAPException
SOAPPart
Source
object.getContent
in class SOAPPart
javax.xml.transform.Source
objectSOAPException
- if the implementation cannot convert
the specified Source
objectSOAPPart.setContent(javax.xml.transform.Source)
public DOMImplementation getImplementation()
public DocumentFragment createDocumentFragment()
public DocumentType getDoctype()
public Element getDocumentElement()
public Attr createAttribute(String name) throws DOMException
DOMException
public CDATASection createCDATASection(String data) throws DOMException
DOMException
public Element createElement(String tagName) throws DOMException
DOMException
public EntityReference createEntityReference(String name) throws DOMException
DOMException
public Node importNode(Node importedNode, boolean deep) throws DOMException
DOMException
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
DOMException
public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException
DOMException
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
DOMException
public Node appendChild(Node newChild) throws DOMException
DOMException
public Node cloneNode(boolean deep)
public NamedNodeMap getAttributes()
public NodeList getChildNodes()
public Node getFirstChild()
public Node getLastChild()
public String getLocalName()
public String getNamespaceURI()
public Node getNextSibling()
public String getNodeName()
public short getNodeType()
public String getNodeValue() throws DOMException
DOMException
public Document getOwnerDocument()
public Node getParentNode()
public String getPrefix()
public Node getPreviousSibling()
public boolean hasAttributes()
public boolean hasChildNodes()
public Node insertBefore(Node newChild, Node refChild) throws DOMException
DOMException
public void normalize()
public Node removeChild(Node oldChild) throws DOMException
DOMException
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
DOMException
public void setNodeValue(String nodeValue) throws DOMException
DOMException
public void setPrefix(String s) throws DOMException
DOMException
public Node adoptNode(Node source) throws DOMException
DOMException
public String getDocumentURI()
public DOMConfiguration getDomConfig()
public String getInputEncoding()
public boolean getStrictErrorChecking()
public String getXmlEncoding()
public boolean getXmlStandalone()
public String getXmlVersion()
public void normalizeDocument()
public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException
DOMException
public void setDocumentURI(String documentURI)
public void setStrictErrorChecking(boolean strictErrorChecking)
public void setXmlStandalone(boolean xmlStandalone) throws DOMException
DOMException
public void setXmlVersion(String xmlVersion) throws DOMException
DOMException
public short compareDocumentPosition(Node other) throws DOMException
DOMException
public String getBaseURI()
public String getTextContent() throws DOMException
DOMException
public boolean isDefaultNamespace(String namespaceURI)
public boolean isEqualNode(Node arg)
public boolean isSameNode(Node other)
public void setTextContent(String textContent) throws DOMException
DOMException
public Object setUserData(String key, Object data, UserDataHandler handler)
public void detachNode()
Node
Node
object from the tree.public SOAPElement getParentElement()
Node
Node
object.
This method can throw an UnsupportedOperationException
if the tree is not kept in memory.SOAPElement
object that is the parent of
this Node
object or null
if this
Node
object is rootNode.setParentElement(javax.xml.soap.SOAPElement)
public String getValue()
Node
Text
node or the
value of the immediate child of this node otherwise.
If there is an immediate child of this Node
that it is a
Text
node then it's value will be returned. If there is
more than one Text
node then the value of the first
Text
Node will be returned.
Otherwise null
is returned.String
with the text of this node if this is a
Text
node or the text contained by the first
immediate child of this Node
object that is a
Text
object if such a child exists;
null
otherwise.public void recycleNode()
Node
Node
object is no longer being used by the application and that the
implementation is free to reuse this object for nodes that may
be created later.
Calling the method recycleNode
implies that the method
detachNode
has been called previously.
public void setParentElement(SOAPElement parent) throws SOAPException
Node
Node
object to the given
SOAPElement
object.parent
- the SOAPElement
object to be set as
the parent of this Node
objectSOAPException
- if there is a problem in setting the
parent to the given elementNode.getParentElement()
public void setValue(String value)
Node
Text
node, or if
there are no children in which case a child Text
node will be
created.Copyright © 2018 JBoss by Red Hat. All rights reserved.