uTools-Manuals/docs/java/javax/xml/ws/soap/MTOMFeature.html

321 lines
13 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.ws.soap
</div>
<h2 class="title" title="Class MTOMFeature">Class MTOMFeature</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><a href="../../../../javax/xml/ws/WebServiceFeature.html" title="class in javax.xml.ws">javax.xml.ws.WebServiceFeature</a></li>
<li>
<ul class="inheritance">
<li>javax.xml.ws.soap.MTOMFeature</li>
</ul> </li>
</ul> </li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr/> <br/> <pre>public final class <span class="typeNameLabel">MTOMFeature</span>
extends <a href="../../../../javax/xml/ws/WebServiceFeature.html" title="class in javax.xml.ws">WebServiceFeature</a></pre>
<div class="block">
<span>此功能表示使用具有Web服务的MTOM。</span>
<span>此功能可以在创建SEI代理的过程中使用<a href="../../../../javax/xml/ws/Dispatch.html" title="javax.xml.ws中的接口"><code>Dispatch</code></a>在客户端实例和<a href="../../../../javax/xml/ws/Endpoint.html" title="javax.xml.ws中的类"><code>Endpoint</code></a>在服务器端实例。</span>
<span>此功能不能用于客户端上的<a href="../../../../javax/xml/ws/Service.html" title="javax.xml.ws中的类"><code>Service</code></a>实例创建。</span>
<p> <span>以下描述了此功能对启用或禁用的影响:</span> </p>
<ul>
<li> <span>ENABLED在此模式下MTOM将被启用。</span> <span>接收方必须同时接受非优化消息和优化消息,并且发送方可以发送优化消息或非优化消息。</span> <span>发送方使用的启发式方法来确定是否使用优化是实现特定的。</span> </li>
<li> <span>禁用在此模式下MTOM将被禁用</span> </li>
</ul>
<p> <span><a href="../../../../javax/xml/ws/soap/MTOMFeature.html#threshold"><code>threshold</code></a>属性可用于设置用于确定二进制数据何时应进行XOP编码的阈值。</span> </p>
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
JAX-WS 2.1
</dd>
</dl> </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>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Field Summary table, listing fields, and an explanation">
<caption>
<span>Fields</span>
<span class="tabEnd"> </span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <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/ws/soap/MTOMFeature.html#ID">ID</a></span></code>
<div class="block">
识别MTOMFeature的恒定值
</div> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/ws/soap/MTOMFeature.html#threshold">threshold</a></span></code>
<div class="block">
MTOM阈值属性。
</div> </td>
</tr>
</tbody>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.javax.xml.ws.WebServiceFeature">
<!-- --> </a> <h3>Fields inherited from class javax.xml.ws.<a href="../../../../javax/xml/ws/WebServiceFeature.html" title="class in javax.xml.ws">WebServiceFeature</a></h3> <code><a href="../../../../javax/xml/ws/WebServiceFeature.html#enabled">enabled</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/ws/soap/MTOMFeature.html#MTOMFeature--">MTOMFeature</a></span>()</code>
<div class="block">
创建一个
<code>MTOMFeature</code>
</div> </td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../javax/xml/ws/soap/MTOMFeature.html#MTOMFeature-boolean-">MTOMFeature</a></span>(boolean enabled)</code>
<div class="block">
创建一个
<code>MTOMFeature</code>
</div> </td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../javax/xml/ws/soap/MTOMFeature.html#MTOMFeature-boolean-int-">MTOMFeature</a></span>(boolean enabled, int threshold)</code>
<div class="block">
创建了一个
<code>MTOMFeature</code>
</div> </td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../javax/xml/ws/soap/MTOMFeature.html#MTOMFeature-int-">MTOMFeature</a></span>(int threshold)</code>
<div class="block">
创建一个
<code>MTOMFeature</code>
</div> </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="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><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/ws/soap/MTOMFeature.html#getID--">getID</a></span>()</code>
<div class="block">
获取此WebServiceFeature的唯一标识符。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/ws/soap/MTOMFeature.html#getThreshold--">getThreshold</a></span>()</code>
<div class="block">
获取用于确定二进制数据何时作为附件发送的阈值。
</div> </td>
</tr>
</tbody>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.javax.xml.ws.WebServiceFeature">
<!-- --> </a> <h3>Methods inherited from class javax.xml.ws.<a href="../../../../javax/xml/ws/WebServiceFeature.html" title="class in javax.xml.ws">WebServiceFeature</a></h3> <code><a href="../../../../javax/xml/ws/WebServiceFeature.html#isEnabled--">isEnabled</a></code></li>
</ul>
<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> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- --> </a> <h3>字段详细信息</h3> <a name="ID">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>ID</h4> <pre>public static final <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> ID</pre>
<div class="block">
识别MTOMFeature的恒定值
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../../constant-values.html#javax.xml.ws.soap.MTOMFeature.ID">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="threshold">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>threshold</h4> <pre>protected int threshold</pre>
<div class="block">
<span>MTOM阈值属性。</span>
<span>当启用MTOM时此属性作为提示以字节为单位的二进制数据应以附件形式发送。</span>
<span>该属性的值必须始终为&gt; = 0。默认值为0。</span>
</div> </li>
</ul> </li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- --> </a> <h3>构造方法详细信息</h3> <a name="MTOMFeature--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>MTOMFeature</h4> <pre>public MTOMFeature()</pre>
<div class="block">
<span>创建一个<code>MTOMFeature</code></span>
<span>创建的实例将被启用。</span>
</div> </li>
</ul> <a name="MTOMFeature-boolean-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>MTOMFeature</h4> <pre>public MTOMFeature(boolean enabled)</pre>
<div class="block">
创建一个
<code>MTOMFeature</code>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>enabled</code> - 指定是否启用此功能
</dd>
</dl> </li>
</ul> <a name="MTOMFeature-int-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>MTOMFeature</h4> <pre>public MTOMFeature(int threshold)</pre>
<div class="block">
<span>创建一个<code>MTOMFeature</code></span>
<span>创建的实例将被启用。</span>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>threshold</code> - 作为附件发送二进制数据的大小(以字节为单位)。
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../../javax/xml/ws/WebServiceException.html" title="class in javax.xml.ws">WebServiceException</a></code> - 如果阈值为&lt;0
</dd>
</dl> </li>
</ul> <a name="MTOMFeature-boolean-int-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>MTOMFeature</h4> <pre>public MTOMFeature(boolean enabled,
int threshold)</pre>
<div class="block">
创建一个
<code>MTOMFeature</code>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>enabled</code> - 指定是否启用此功能
</dd>
<dd>
<code>threshold</code> - 作为附件发送二进制数据的大小(以字节为单位)。
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../../javax/xml/ws/WebServiceException.html" title="class in javax.xml.ws">WebServiceException</a></code> - 如果阈值为&lt;0
</dd>
</dl> </li>
</ul> </li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="getID--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getID</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getID()</pre>
<div class="block">
获取此WebServiceFeature的唯一标识符。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../../javax/xml/ws/WebServiceFeature.html#getID--">getID</a></code>在类
<code><a href="../../../../javax/xml/ws/WebServiceFeature.html" title="class in javax.xml.ws">WebServiceFeature</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
该功能的唯一标识符。
</dd>
</dl> </li>
</ul> <a name="getThreshold--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>getThreshold</h4> <pre>public int getThreshold()</pre>
<div class="block">
获取用于确定二进制数据何时作为附件发送的阈值。
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
当前阈值大小(以字节为单位)
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>