629 lines
38 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
javax.xml.soap
</div>
<h2 class="title" title="Class SOAPPart">Class SOAPPart</h2>
</div><div class="contentContainer">
<ul class="inheritance">
<li><a href="../../../java/lang/Object.html" title="class in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>javax.xml.soap.SOAPPart</li>
</ul> </li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Implemented Interfaces:
</dt>
<dd>
<span><a href="../../../org/w3c/dom/Document.html" title="界面在org.w3c.dom">Document</a> <a href="../../../org/w3c/dom/Node.html" title="界面在org.w3c.dom">Node</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public abstract class <span class="typeNameLabel">SOAPPart</span>
extends <a href="../../../java/lang/Object.html" title="class in java.lang">Object</a>
implements <a href="../../../org/w3c/dom/Document.html" title="interface in org.w3c.dom">Document</a>, <a href="../../../javax/xml/soap/Node.html" title="interface in javax.xml.soap">Node</a></pre>
<div class="block">
<span><code>SOAPMessage</code>对象的SOAP特定部分的<code>SOAPMessage</code></span>
<span>所有消息都需要有一个SOAP部分因此当创建一个<code>SOAPMessage</code>对象时,它将自动拥有一个<code>SOAPPart</code>对象。</span>
<p> <span><code>SOAPPart</code>对象是MIME部分并具有MIME标头Content-IdContent-Location和Content-Type。</span> <span>因为Content-Type的值必须为“text / xml”所以<code>SOAPPart</code>对象自动具有Content-Type的MIME标题其值设置为“text / xml”。</span> <span>该值必须是“text / xml”因为消息的SOAP部分中的内容必须是XML格式。</span> <span>不是“text / xml”类型的内容必须在<code>AttachmentPart</code>对象中,而不是在<code>SOAPPart</code>对象中。</span> </p>
<p> <span>发送消息时其SOAP部分必须将MIME头的Content-Type设置为“text / xml”。</span> <span>或者从另一角度看接收的任何消息的SOAP部分必须具有值为“text / xml”的MIME头Content-Type。</span> </p>
<p> <span>客户端可以通过调用方法<code>SOAPMessage.getSOAPPart</code>访问<code>SOAPPart</code>对象的<code>SOAPMessage</code>对象。</span> <span>以下代码行( <code>message</code>是一个<code>SOAPMessage</code>对象检索消息的SOAP部分。</span> </p>
<pre> <span>SOAPPart soapPart = message.getSOAPPart();</span> </pre>
<p> <span>一个<code>SOAPPart</code>对象包含一个<code>SOAPEnvelope</code>对象,它又包含一个<code>SOAPBody</code>对象和一个<code>SOAPHeader</code>对象。</span> <span><code>SOAPPart</code>方法<code>getEnvelope</code>可用于检索<code>SOAPEnvelope</code>对象。</span> </p>
<p></p>
</div> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- --> </a> <h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.w3c.dom.Node">
<!-- --> </a> <h3>Fields inherited from interface org.w3c.dom.<a href="../../../org/w3c/dom/Node.html" title="interface in org.w3c.dom">Node</a></h3> <code><a href="../../../org/w3c/dom/Node.html#ATTRIBUTE_NODE">ATTRIBUTE_NODE</a>, <a href="../../../org/w3c/dom/Node.html#CDATA_SECTION_NODE">CDATA_SECTION_NODE</a>, <a href="../../../org/w3c/dom/Node.html#COMMENT_NODE">COMMENT_NODE</a>, <a href="../../../org/w3c/dom/Node.html#DOCUMENT_FRAGMENT_NODE">DOCUMENT_FRAGMENT_NODE</a>, <a href="../../../org/w3c/dom/Node.html#DOCUMENT_NODE">DOCUMENT_NODE</a>, <a href="../../../org/w3c/dom/Node.html#DOCUMENT_POSITION_CONTAINED_BY">DOCUMENT_POSITION_CONTAINED_BY</a>, <a href="../../../org/w3c/dom/Node.html#DOCUMENT_POSITION_CONTAINS">DOCUMENT_POSITION_CONTAINS</a>, <a href="../../../org/w3c/dom/Node.html#DOCUMENT_POSITION_DISCONNECTED">DOCUMENT_POSITION_DISCONNECTED</a>, <a href="../../../org/w3c/dom/Node.html#DOCUMENT_POSITION_FOLLOWING">DOCUMENT_POSITION_FOLLOWING</a>, <a href="../../../org/w3c/dom/Node.html#DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC">DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC</a>, <a href="../../../org/w3c/dom/Node.html#DOCUMENT_POSITION_PRECEDING">DOCUMENT_POSITION_PRECEDING</a>, <a href="../../../org/w3c/dom/Node.html#DOCUMENT_TYPE_NODE">DOCUMENT_TYPE_NODE</a>, <a href="../../../org/w3c/dom/Node.html#ELEMENT_NODE">ELEMENT_NODE</a>, <a href="../../../org/w3c/dom/Node.html#ENTITY_NODE">ENTITY_NODE</a>, <a href="../../../org/w3c/dom/Node.html#ENTITY_REFERENCE_NODE">ENTITY_REFERENCE_NODE</a>, <a href="../../../org/w3c/dom/Node.html#NOTATION_NODE">NOTATION_NODE</a>, <a href="../../../org/w3c/dom/Node.html#PROCESSING_INSTRUCTION_NODE">PROCESSING_INSTRUCTION_NODE</a>, <a href="../../../org/w3c/dom/Node.html#TEXT_NODE">TEXT_NODE</a></code></li>
</ul> </li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- --> </a> <h3>构造方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
<caption>
<span>构造方法</span>
<span class="tabEnd"> </span>
</caption>
<tbody>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/xml/soap/SOAPPart.html#SOAPPart--">SOAPPart</a></span>()</code> </td>
</tr>
</tbody>
</table> </li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- --> </a> <h3>方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption>
<span class="activeTableTab" id="t0"><span>所有方法</span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t2"><span><a href="javascript:show(2);">接口方法</a></span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t3"><span><a href="javascript:show(4);">抽象方法</a></span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t4"><span><a href="javascript:show(8);">具体的方法</a></span><span class="tabEnd"> </span></span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor" id="i0">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/soap/SOAPPart.html#addMimeHeader-java.lang.String-java.lang.String-">addMimeHeader</a></span>(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> name, <a href="../../../java/lang/String.html" title="class in java.lang">String</a> value)</code>
<div class="block">
创建具有
<code>MimeHeader</code>名称和值的
<code>SOAPPart</code>对象,并将其添加到此
<code>SOAPPart</code>对象。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>abstract <a href="../../../java/util/Iterator.html" title="interface in java.util">Iterator</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/soap/SOAPPart.html#getAllMimeHeaders--">getAllMimeHeaders</a></span>()</code>
<div class="block">
检索这一切的头
<code>SOAPPart</code>对象为在一个迭代
<code>MimeHeader</code>对象。
</div> </td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code>abstract <a href="../../../javax/xml/transform/Source.html" title="interface in javax.xml.transform">Source</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/soap/SOAPPart.html#getContent--">getContent</a></span>()</code>
<div class="block">
以JAXP
<code>Source</code>对象的形式返回SOAPEnvelope的内容。
</div> </td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code><a href="../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/soap/SOAPPart.html#getContentId--">getContentId</a></span>()</code>
<div class="block">
检索名称为“Content-Id”的MIME标头的值。
</div> </td>
</tr>
<tr class="altColor" id="i4">
<td class="colFirst"><code><a href="../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/soap/SOAPPart.html#getContentLocation--">getContentLocation</a></span>()</code>
<div class="block">
检索名称为“Content-Location”的MIME标头的值。
</div> </td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code>abstract <a href="../../../javax/xml/soap/SOAPEnvelope.html" title="interface in javax.xml.soap">SOAPEnvelope</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/soap/SOAPPart.html#getEnvelope--">getEnvelope</a></span>()</code>
<div class="block">
获取
<code>SOAPEnvelope</code>与此相关联的对象
<code>SOAPPart</code>对象。
</div> </td>
</tr>
<tr class="altColor" id="i6">
<td class="colFirst"><code>abstract <a href="../../../java/util/Iterator.html" title="interface in java.util">Iterator</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/soap/SOAPPart.html#getMatchingMimeHeaders-java.lang.String:A-">getMatchingMimeHeaders</a></span>(<a href="../../../java/lang/String.html" title="class in java.lang">String</a>[] names)</code>
<div class="block">
检索与给定数组中的名称相匹配的所有
<code>MimeHeader</code>对象。
</div> </td>
</tr>
<tr class="rowColor" id="i7">
<td class="colFirst"><code>abstract <a href="../../../java/lang/String.html" title="class in java.lang">String</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/soap/SOAPPart.html#getMimeHeader-java.lang.String-">getMimeHeader</a></span>(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> name)</code>
<div class="block">
获取的所有值
<code>MimeHeader</code>这个对象
<code>SOAPPart</code>对象由给定的标识
<code>String</code>
</div> </td>
</tr>
<tr class="altColor" id="i8">
<td class="colFirst"><code>abstract <a href="../../../java/util/Iterator.html" title="interface in java.util">Iterator</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/soap/SOAPPart.html#getNonMatchingMimeHeaders-java.lang.String:A-">getNonMatchingMimeHeaders</a></span>(<a href="../../../java/lang/String.html" title="class in java.lang">String</a>[] names)</code>
<div class="block">
检索名称与给定数组中的名称不匹配的所有
<code>MimeHeader</code>对象。
</div> </td>
</tr>
<tr class="rowColor" id="i9">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/soap/SOAPPart.html#removeAllMimeHeaders--">removeAllMimeHeaders</a></span>()</code>
<div class="block">
删除该
<code>MimeHeader</code>对象的所有
<code>SOAPEnvelope</code>对象。
</div> </td>
</tr>
<tr class="altColor" id="i10">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/soap/SOAPPart.html#removeMimeHeader-java.lang.String-">removeMimeHeader</a></span>(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> header)</code>
<div class="block">
删除与给定名称相匹配的所有MIME标头。
</div> </td>
</tr>
<tr class="rowColor" id="i11">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/soap/SOAPPart.html#setContent-javax.xml.transform.Source-">setContent</a></span>(<a href="../../../javax/xml/transform/Source.html" title="interface in javax.xml.transform">Source</a> source)</code>
<div class="block">
使用给定的
<code>Source</code>对象的数据设置
<code>SOAPEnvelope</code>对象的内容。
</div> </td>
</tr>
<tr class="altColor" id="i12">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/soap/SOAPPart.html#setContentId-java.lang.String-">setContentId</a></span>(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> contentId)</code>
<div class="block">
将名为“Content-Id”的MIME头的值设置为给定的
<code>String</code>
</div> </td>
</tr>
<tr class="rowColor" id="i13">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/soap/SOAPPart.html#setContentLocation-java.lang.String-">setContentLocation</a></span>(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> contentLocation)</code>
<div class="block">
将MIME标题“Content-Location”的值设置为给定的
<code>String</code>
</div> </td>
</tr>
<tr class="altColor" id="i14">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/soap/SOAPPart.html#setMimeHeader-java.lang.String-java.lang.String-">setMimeHeader</a></span>(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> name, <a href="../../../java/lang/String.html" title="class in java.lang">String</a> value)</code>
<div class="block">
更改与给定标题名称匹配的第一个标题条目,以使其值为给定值,如果没有现有标题匹配,则添加具有给定名称和值的新标题。
</div> </td>
</tr>
</tbody>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- --> </a> <h3>Methods inherited from class java.lang.<a href="../../../java/lang/Object.html" title="class in java.lang">Object</a></h3> <code><a href="../../../java/lang/Object.html#clone--">clone</a>, <a href="../../../java/lang/Object.html#equals-java.lang.Object-">equals</a>, <a href="../../../java/lang/Object.html#finalize--">finalize</a>, <a href="../../../java/lang/Object.html#getClass--">getClass</a>, <a href="../../../java/lang/Object.html#hashCode--">hashCode</a>, <a href="../../../java/lang/Object.html#notify--">notify</a>, <a href="../../../java/lang/Object.html#notifyAll--">notifyAll</a>, <a href="../../../java/lang/Object.html#toString--">toString</a>, <a href="../../../java/lang/Object.html#wait--">wait</a>, <a href="../../../java/lang/Object.html#wait-long-">wait</a>, <a href="../../../java/lang/Object.html#wait-long-int-">wait</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.w3c.dom.Document">
<!-- --> </a> <h3>Methods inherited from interface org.w3c.dom.<a href="../../../org/w3c/dom/Document.html" title="interface in org.w3c.dom">Document</a></h3> <code><a href="../../../org/w3c/dom/Document.html#adoptNode-org.w3c.dom.Node-">adoptNode</a>, <a href="../../../org/w3c/dom/Document.html#createAttribute-java.lang.String-">createAttribute</a>, <a href="../../../org/w3c/dom/Document.html#createAttributeNS-java.lang.String-java.lang.String-">createAttributeNS</a>, <a href="../../../org/w3c/dom/Document.html#createCDATASection-java.lang.String-">createCDATASection</a>, <a href="../../../org/w3c/dom/Document.html#createComment-java.lang.String-">createComment</a>, <a href="../../../org/w3c/dom/Document.html#createDocumentFragment--">createDocumentFragment</a>, <a href="../../../org/w3c/dom/Document.html#createElement-java.lang.String-">createElement</a>, <a href="../../../org/w3c/dom/Document.html#createElementNS-java.lang.String-java.lang.String-">createElementNS</a>, <a href="../../../org/w3c/dom/Document.html#createEntityReference-java.lang.String-">createEntityReference</a>, <a href="../../../org/w3c/dom/Document.html#createProcessingInstruction-java.lang.String-java.lang.String-">createProcessingInstruction</a>, <a href="../../../org/w3c/dom/Document.html#createTextNode-java.lang.String-">createTextNode</a>, <a href="../../../org/w3c/dom/Document.html#getDoctype--">getDoctype</a>, <a href="../../../org/w3c/dom/Document.html#getDocumentElement--">getDocumentElement</a>, <a href="../../../org/w3c/dom/Document.html#getDocumentURI--">getDocumentURI</a>, <a href="../../../org/w3c/dom/Document.html#getDomConfig--">getDomConfig</a>, <a href="../../../org/w3c/dom/Document.html#getElementById-java.lang.String-">getElementById</a>, <a href="../../../org/w3c/dom/Document.html#getElementsByTagName-java.lang.String-">getElementsByTagName</a>, <a href="../../../org/w3c/dom/Document.html#getElementsByTagNameNS-java.lang.String-java.lang.String-">getElementsByTagNameNS</a>, <a href="../../../org/w3c/dom/Document.html#getImplementation--">getImplementation</a>, <a href="../../../org/w3c/dom/Document.html#getInputEncoding--">getInputEncoding</a>, <a href="../../../org/w3c/dom/Document.html#getStrictErrorChecking--">getStrictErrorChecking</a>, <a href="../../../org/w3c/dom/Document.html#getXmlEncoding--">getXmlEncoding</a>, <a href="../../../org/w3c/dom/Document.html#getXmlStandalone--">getXmlStandalone</a>, <a href="../../../org/w3c/dom/Document.html#getXmlVersion--">getXmlVersion</a>, <a href="../../../org/w3c/dom/Document.html#importNode-org.w3c.dom.Node-boolean-">importNode</a>, <a href="../../../org/w3c/dom/Document.html#normalizeDocument--">normalizeDocument</a>, <a href="../../../org/w3c/dom/Document.html#renameNode-org.w3c.dom.Node-java.lang.String-java.lang.String-">renameNode</a>, <a href="../../../org/w3c/dom/Document.html#setDocumentURI-java.lang.String-">setDocumentURI</a>, <a href="../../../org/w3c/dom/Document.html#setStrictErrorChecking-boolean-">setStrictErrorChecking</a>, <a href="../../../org/w3c/dom/Document.html#setXmlStandalone-boolean-">setXmlStandalone</a>, <a href="../../../org/w3c/dom/Document.html#setXmlVersion-java.lang.String-">setXmlVersion</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.javax.xml.soap.Node">
<!-- --> </a> <h3>Methods inherited from interface javax.xml.soap.<a href="../../../javax/xml/soap/Node.html" title="interface in javax.xml.soap">Node</a></h3> <code><a href="../../../javax/xml/soap/Node.html#detachNode--">detachNode</a>, <a href="../../../javax/xml/soap/Node.html#getParentElement--">getParentElement</a>, <a href="../../../javax/xml/soap/Node.html#getValue--">getValue</a>, <a href="../../../javax/xml/soap/Node.html#recycleNode--">recycleNode</a>, <a href="../../../javax/xml/soap/Node.html#setParentElement-javax.xml.soap.SOAPElement-">setParentElement</a>, <a href="../../../javax/xml/soap/Node.html#setValue-java.lang.String-">setValue</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.w3c.dom.Node">
<!-- --> </a> <h3>Methods inherited from interface org.w3c.dom.<a href="../../../org/w3c/dom/Node.html" title="interface in org.w3c.dom">Node</a></h3> <code><a href="../../../org/w3c/dom/Node.html#appendChild-org.w3c.dom.Node-">appendChild</a>, <a href="../../../org/w3c/dom/Node.html#cloneNode-boolean-">cloneNode</a>, <a href="../../../org/w3c/dom/Node.html#compareDocumentPosition-org.w3c.dom.Node-">compareDocumentPosition</a>, <a href="../../../org/w3c/dom/Node.html#getAttributes--">getAttributes</a>, <a href="../../../org/w3c/dom/Node.html#getBaseURI--">getBaseURI</a>, <a href="../../../org/w3c/dom/Node.html#getChildNodes--">getChildNodes</a>, <a href="../../../org/w3c/dom/Node.html#getFeature-java.lang.String-java.lang.String-">getFeature</a>, <a href="../../../org/w3c/dom/Node.html#getFirstChild--">getFirstChild</a>, <a href="../../../org/w3c/dom/Node.html#getLastChild--">getLastChild</a>, <a href="../../../org/w3c/dom/Node.html#getLocalName--">getLocalName</a>, <a href="../../../org/w3c/dom/Node.html#getNamespaceURI--">getNamespaceURI</a>, <a href="../../../org/w3c/dom/Node.html#getNextSibling--">getNextSibling</a>, <a href="../../../org/w3c/dom/Node.html#getNodeName--">getNodeName</a>, <a href="../../../org/w3c/dom/Node.html#getNodeType--">getNodeType</a>, <a href="../../../org/w3c/dom/Node.html#getNodeValue--">getNodeValue</a>, <a href="../../../org/w3c/dom/Node.html#getOwnerDocument--">getOwnerDocument</a>, <a href="../../../org/w3c/dom/Node.html#getParentNode--">getParentNode</a>, <a href="../../../org/w3c/dom/Node.html#getPrefix--">getPrefix</a>, <a href="../../../org/w3c/dom/Node.html#getPreviousSibling--">getPreviousSibling</a>, <a href="../../../org/w3c/dom/Node.html#getTextContent--">getTextContent</a>, <a href="../../../org/w3c/dom/Node.html#getUserData-java.lang.String-">getUserData</a>, <a href="../../../org/w3c/dom/Node.html#hasAttributes--">hasAttributes</a>, <a href="../../../org/w3c/dom/Node.html#hasChildNodes--">hasChildNodes</a>, <a href="../../../org/w3c/dom/Node.html#insertBefore-org.w3c.dom.Node-org.w3c.dom.Node-">insertBefore</a>, <a href="../../../org/w3c/dom/Node.html#isDefaultNamespace-java.lang.String-">isDefaultNamespace</a>, <a href="../../../org/w3c/dom/Node.html#isEqualNode-org.w3c.dom.Node-">isEqualNode</a>, <a href="../../../org/w3c/dom/Node.html#isSameNode-org.w3c.dom.Node-">isSameNode</a>, <a href="../../../org/w3c/dom/Node.html#isSupported-java.lang.String-java.lang.String-">isSupported</a>, <a href="../../../org/w3c/dom/Node.html#lookupNamespaceURI-java.lang.String-">lookupNamespaceURI</a>, <a href="../../../org/w3c/dom/Node.html#lookupPrefix-java.lang.String-">lookupPrefix</a>, <a href="../../../org/w3c/dom/Node.html#normalize--">normalize</a>, <a href="../../../org/w3c/dom/Node.html#removeChild-org.w3c.dom.Node-">removeChild</a>, <a href="../../../org/w3c/dom/Node.html#replaceChild-org.w3c.dom.Node-org.w3c.dom.Node-">replaceChild</a>, <a href="../../../org/w3c/dom/Node.html#setNodeValue-java.lang.String-">setNodeValue</a>, <a href="../../../org/w3c/dom/Node.html#setPrefix-java.lang.String-">setPrefix</a>, <a href="../../../org/w3c/dom/Node.html#setTextContent-java.lang.String-">setTextContent</a>, <a href="../../../org/w3c/dom/Node.html#setUserData-java.lang.String-java.lang.Object-org.w3c.dom.UserDataHandler-">setUserData</a></code></li>
</ul> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- --> </a> <h3>构造方法详细信息</h3> <a name="SOAPPart--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>SOAPPart</h4> <pre>public SOAPPart()</pre> </li>
</ul> </li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="getEnvelope--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getEnvelope</h4> <pre>public abstract <a href="../../../javax/xml/soap/SOAPEnvelope.html" title="interface in javax.xml.soap">SOAPEnvelope</a> getEnvelope()
throws <a href="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</a></pre>
<div class="block">
<span>获取<code>SOAPEnvelope</code>与此相关联的对象<code>SOAPPart</code>对象。</span>
<span>一旦获得了SOAP信封就可以使用它来获取它的内容。</span>
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
这个
<code>SOAPEnvelope</code>对象的
<code>SOAPPart</code>对象
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</a></code> - 如果存在SOAP错误
</dd>
</dl> </li>
</ul> <a name="getContentId--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getContentId</h4> <pre>public <a href="../../../java/lang/String.html" title="class in java.lang">String</a> getContentId()</pre>
<div class="block">
检索名称为“Content-Id”的MIME标头的值。
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
一个
<code>String</code>给出名为“Content-Id”的MIME头的值
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../javax/xml/soap/SOAPPart.html#setContentId-java.lang.String-"><code>setContentId(java.lang.String)</code></a>
</dd>
</dl> </li>
</ul> <a name="getContentLocation--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getContentLocation</h4> <pre>public <a href="../../../java/lang/String.html" title="class in java.lang">String</a> getContentLocation()</pre>
<div class="block">
检索名称为“Content-Location”的MIME标头的值。
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
一个
<code>String</code>给出名称为“Content-Location”的MIME头的值
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../javax/xml/soap/SOAPPart.html#setContentLocation-java.lang.String-"><code>setContentLocation(java.lang.String)</code></a>
</dd>
</dl> </li>
</ul> <a name="setContentId-java.lang.String-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>setContentId</h4> <pre>public void setContentId(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> contentId)</pre>
<div class="block">
将名为“Content-Id”的MIME头的值设置为给定的
<code>String</code>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>contentId</code> - a
<code>String</code>给出MIME头“Content-Id”的值
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../java/lang/IllegalArgumentException.html" title="class in java.lang">IllegalArgumentException</a></code> - 如果设置内容ID有问题
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../javax/xml/soap/SOAPPart.html#getContentId--"><code>getContentId()</code></a>
</dd>
</dl> </li>
</ul> <a name="setContentLocation-java.lang.String-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>setContentLocation</h4> <pre>public void setContentLocation(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> contentLocation)</pre>
<div class="block">
将MIME标题“Content-Location”的值设置为给定的
<code>String</code>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>contentLocation</code> - 一个
<code>String</code>给出了MIME头“Content-Location”的值
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../java/lang/IllegalArgumentException.html" title="class in java.lang">IllegalArgumentException</a></code> - 如果设置内容位置有问题。
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../javax/xml/soap/SOAPPart.html#getContentLocation--"><code>getContentLocation()</code></a>
</dd>
</dl> </li>
</ul> <a name="removeMimeHeader-java.lang.String-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>removeMimeHeader</h4> <pre>public abstract void removeMimeHeader(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> header)</pre>
<div class="block">
删除与给定名称相匹配的所有MIME标头。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>header</code> - 一个
<code>String</code>给出要删除的MIME标题的名称
</dd>
</dl> </li>
</ul> <a name="removeAllMimeHeaders--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>removeAllMimeHeaders</h4> <pre>public abstract void removeAllMimeHeaders()</pre>
<div class="block">
删除所有
<code>MimeHeader</code>这个对象
<code>SOAPEnvelope</code>对象。
</div> </li>
</ul> <a name="getMimeHeader-java.lang.String-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getMimeHeader</h4> <pre>public abstract <a href="../../../java/lang/String.html" title="class in java.lang">String</a>[] getMimeHeader(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> name)</pre>
<div class="block">
获取的所有值
<code>MimeHeader</code>这个对象
<code>SOAPPart</code>对象由给定的标识
<code>String</code>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<span><code>name</code> - 标题的名称;</span>
<span>示例“Content-Type”</span>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
一个
<code>String</code>数组,给出指定头的所有值
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../javax/xml/soap/SOAPPart.html#setMimeHeader-java.lang.String-java.lang.String-"><code>setMimeHeader(java.lang.String, java.lang.String)</code></a>
</dd>
</dl> </li>
</ul> <a name="setMimeHeader-java.lang.String-java.lang.String-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>setMimeHeader</h4> <pre>public abstract void setMimeHeader(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> name,
<a href="../../../java/lang/String.html" title="class in java.lang">String</a> value)</pre>
<div class="block">
<span>更改与给定标题名称匹配的第一个标题条目,以使其值为给定值,如果没有现有标题匹配,则添加具有给定名称和值的新标题。</span>
<span>如果存在匹配项,则此方法将清除匹配并设置给定值的第一个标头的所有现有值。</span>
<span>如果多个头部具有给定的名称,则此方法将在第一个头部之后删除所有匹配的头部。</span>
<p> <span>请注意RFC822头文件只能包含US-ASCII字符。</span> </p>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>name</code> - 一个
<code>String</code>给出要搜索的标题名称
</dd>
<dd>
<span><code>value</code> - a <code>String</code>给出要设置的值。</span>
<span>该值将替代当前匹配的第一个标题的当前值(如果有的话)。</span>
<span>如果没有匹配,该值将是新的<code>MimeHeader</code>对象的值。</span>
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../java/lang/IllegalArgumentException.html" title="class in java.lang">IllegalArgumentException</a></code> - 如果指定的MIME名称或值有问题
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../javax/xml/soap/SOAPPart.html#getMimeHeader-java.lang.String-"><code>getMimeHeader(java.lang.String)</code></a>
</dd>
</dl> </li>
</ul> <a name="addMimeHeader-java.lang.String-java.lang.String-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>addMimeHeader</h4> <pre>public abstract void addMimeHeader(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> name,
<a href="../../../java/lang/String.html" title="class in java.lang">String</a> value)</pre>
<div class="block">
<span>创建一个<code>MimeHeader</code>具有指定名称和值对象,并将其添加到这个<code>SOAPPart</code>对象。</span>
<span>如果具有<code>MimeHeader</code>名称的MimeHeader已经存在则此方法将指定的值添加到已存在的值。</span>
<p> <span>请注意RFC822头文件只能包含US-ASCII字符。</span> </p>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>name</code> - 一个
<code>String</code>给出标题名称
</dd>
<dd>
<code>value</code> - a
<code>String</code>给出要设置或添加的值
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../java/lang/IllegalArgumentException.html" title="class in java.lang">IllegalArgumentException</a></code> - 如果指定的mime头名称或值有问题
</dd>
</dl> </li>
</ul> <a name="getAllMimeHeaders--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getAllMimeHeaders</h4> <pre>public abstract <a href="../../../java/util/Iterator.html" title="interface in java.util">Iterator</a> getAllMimeHeaders()</pre>
<div class="block">
检索这一切的头
<code>SOAPPart</code>对象为在一个迭代
<code>MimeHeader</code>对象。
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
一个
<code>Iterator</code>对象所有MIME头的这个
<code>SOAPPart</code>对象
</dd>
</dl> </li>
</ul> <a name="getMatchingMimeHeaders-java.lang.String:A-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getMatchingMimeHeaders</h4> <pre>public abstract <a href="../../../java/util/Iterator.html" title="interface in java.util">Iterator</a> getMatchingMimeHeaders(<a href="../../../java/lang/String.html" title="class in java.lang">String</a>[] names)</pre>
<div class="block">
检索与给定数组中的名称相匹配的所有
<code>MimeHeader</code>对象。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>names</code> - 具有要返回的MIME标题的名称的
<code>String</code>数组
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
与给定数组中的一个名称匹配的所有MIME头都返回为
<code>Iterator</code>对象
</dd>
</dl> </li>
</ul> <a name="getNonMatchingMimeHeaders-java.lang.String:A-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getNonMatchingMimeHeaders</h4> <pre>public abstract <a href="../../../java/util/Iterator.html" title="interface in java.util">Iterator</a> getNonMatchingMimeHeaders(<a href="../../../java/lang/String.html" title="class in java.lang">String</a>[] names)</pre>
<div class="block">
检索其名称与给定数组中的名称不匹配的所有
<code>MimeHeader</code>对象。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>names</code> - 一个
<code>String</code>数组其MIME标题的名称不被返回
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
<span><code>SOAPPart</code>对象中的所有MIME标头除了与给定数组中的一个名称相匹配的对象。</span>
<span>不匹配的MIME标题返回为<code>Iterator</code>对象。</span>
</dd>
</dl> </li>
</ul> <a name="setContent-javax.xml.transform.Source-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>setContent</h4> <pre>public abstract void setContent(<a href="../../../javax/xml/transform/Source.html" title="interface in javax.xml.transform">Source</a> source)
throws <a href="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</a></pre>
<div class="block">
<span>使用给定的<code>Source</code>对象的数据设置<code>SOAPEnvelope</code>对象的内容。</span>
<span><code>Source</code>必须包含有效的SOAP文档。</span>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>source</code> - 要设置的数据的
<code>javax.xml.transform.Source</code>对象
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</a></code> - 如果设置源有问题
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../javax/xml/soap/SOAPPart.html#getContent--"><code>getContent()</code></a>
</dd>
</dl> </li>
</ul> <a name="getContent--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>getContent</h4> <pre>public abstract <a href="../../../javax/xml/transform/Source.html" title="interface in javax.xml.transform">Source</a> getContent()
throws <a href="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</a></pre>
<div class="block">
以JAXP
<code>Source</code>对象的形式返回SOAPEnvelope的内容。
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
内容为
<code>javax.xml.transform.Source</code>对象
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</a></code> - 如果实现不能转换指定的
<code>Source</code>对象
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../javax/xml/soap/SOAPPart.html#setContent-javax.xml.transform.Source-"><code>setContent(javax.xml.transform.Source)</code></a>
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>