112 lines
5.2 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="Annotation Type MTOM">Annotation Type MTOM</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr/> <br/> <pre><a href="../../../../java/lang/annotation/Target.html" title="annotation in java.lang.annotation">@Target</a>(<a href="../../../../java/lang/annotation/Target.html#value--">value</a>={<a href="../../../../java/lang/annotation/ElementType.html#TYPE">TYPE</a>,<a href="../../../../java/lang/annotation/ElementType.html#METHOD">METHOD</a>,<a href="../../../../java/lang/annotation/ElementType.html#FIELD">字段</a>})
<a href="../../../../java/lang/annotation/Retention.html" title="annotation in java.lang.annotation">@Retention</a>(<a href="../../../../java/lang/annotation/Retention.html#value--">value</a>=<a href="../../../../java/lang/annotation/RetentionPolicy.html#RUNTIME">RUNTIME</a>)
<a href="../../../../java/lang/annotation/Documented.html" title="annotation in java.lang.annotation">@Documented</a>
<a href="../../../../javax/xml/ws/spi/WebServiceFeatureAnnotation.html" title="annotation in javax.xml.ws.spi">@WebServiceFeatureAnnotation</a>(<a href="../../../../javax/xml/ws/spi/WebServiceFeatureAnnotation.html#id--">id</a>="http://www.w3.org/2004/08/soap/features/http-optimization",
<a href="../../../../javax/xml/ws/spi/WebServiceFeatureAnnotation.html#bean--">bean</a>=<a href="../../../../javax/xml/ws/soap/MTOMFeature.html" title="class in javax.xml.ws.soap">MTOMFeature.class</a>)
public @interface <span class="memberNameLabel">MTOM</span></pre>
<div class="block">
<span>此功能表示使用具有Web服务的MTOM。</span>
<p> <span>此注释只能在结合使用<code>javax.jws.WebService</code> <a href="../../../../javax/xml/ws/WebServiceProvider.html" title="javax.xml.ws中的注释"><code>WebServiceProvider</code></a> <a href="../../../../javax/xml/ws/WebServiceRef.html" title="javax.xml.ws中的注释"><code>WebServiceRef</code></a>注释。</span> <span>当与<code>javax.jws.WebService</code>注释一起使用时,此注释必须仅在服务端点实现类上使用。</span> <span>当与<code>WebServiceRef</code>注释一起使用时,此注释必须仅在创建代理实例时使用。</span> <span>注入的SEI代理和端点必须符合<code>MTOM</code>注释的值。</span> </p>
<p> <span>此注释的行为由相应的功能<a href="../../../../javax/xml/ws/soap/MTOMFeature.html" title="javax.xml.ws.soap中的类"><code>MTOMFeature</code></a>定义。</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">
<!-- =========== ANNOTATION TYPE OPTIONAL MEMBER SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="annotation.type.optional.element.summary">
<!-- --> </a> <h3>Optional Element Summary</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Optional Element Summary table, listing optional elements, and an explanation">
<caption>
<span>Optional Elements</span>
<span class="tabEnd"> </span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Optional Element and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/ws/soap/MTOM.html#enabled--">enabled</a></span></code>
<div class="block">
指定是否启用或禁用此功能。
</div> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/ws/soap/MTOM.html#threshold--">threshold</a></span></code>
<div class="block">
MTOM阈值属性。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ ANNOTATION TYPE MEMBER DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="annotation.type.element.detail">
<!-- --> </a> <h3>Element Detail</h3> <a name="enabled--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>enabled</h4> <pre>public abstract boolean enabled</pre>
<div class="block">
指定是否启用或禁用此功能。
</div>
<dl>
<dt>
Default:
</dt>
<dd>
真正
</dd>
</dl> </li>
</ul> </li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="threshold--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>threshold</h4> <pre>public abstract int threshold</pre>
<div class="block">
<span>MTOM阈值属性。</span>
<span>当启用MTOM时高于此大小以字节为单位的二进制数据将被XOP编码或作为附件发送。</span>
<span>该属性的值必须始终为&gt; = 0。默认值为0。</span>
</div>
<dl>
<dt>
Default:
</dt>
<dd>
0
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>