94 lines
4.4 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.

<div class="header">
<div class="subTitle">
javax.xml.ws
</div>
<h2 class="title" title="Interface Response">Interface Response&lt;T&gt;</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Superinterfaces:
</dt>
<dd>
<span><a href="../../../java/util/concurrent/Future.html" title="java.util.concurrent中的接口">Future</a> &lt;T&gt;</span>
</dd>
</dl>
<hr/> <br/> <pre>public interface <span class="typeNameLabel">Response&lt;T&gt;</span>
extends <a href="../../../java/util/concurrent/Future.html" title="interface in java.util.concurrent">Future</a>&lt;T&gt;</pre>
<div class="block">
<span><code>Response</code>接口提供了用于获取响应于操作调用发送的消息的有效载荷和上下文的方法。</span>
<p> <span>对于异步操作调用,它提供了其他方法来检查请求的状态。</span> <span><code>get(...)</code>方法可能会抛出标准异常集,其原因可能是<code>RemoteException</code><a href="../../../javax/xml/ws/WebServiceException.html" title="javax.xml.ws中的类"><code>WebServiceException</code></a> ,表示在异步方法调用期间发生的错误。</span> </p>
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
JAX-WS 2.0
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== 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>
</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/util/Map.html" title="interface in java.util">Map</a>&lt;<a href="../../../java/lang/String.html" title="class in java.lang">String</a>,<a href="../../../java/lang/Object.html" title="class in java.lang">Object</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/ws/Response.html#getContext--">getContext</a></span>()</code>
<div class="block">
获取包含的响应上下文。
</div> </td>
</tr>
</tbody>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.util.concurrent.Future">
<!-- --> </a> <h3>Methods inherited from interface java.util.concurrent.<a href="../../../java/util/concurrent/Future.html" title="interface in java.util.concurrent">Future</a></h3> <code><a href="../../../java/util/concurrent/Future.html#cancel-boolean-">cancel</a>, <a href="../../../java/util/concurrent/Future.html#get--">get</a>, <a href="../../../java/util/concurrent/Future.html#get-long-java.util.concurrent.TimeUnit-">get</a>, <a href="../../../java/util/concurrent/Future.html#isCancelled--">isCancelled</a>, <a href="../../../java/util/concurrent/Future.html#isDone--">isDone</a></code></li>
</ul> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="getContext--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>getContext</h4> <pre><a href="../../../java/util/Map.html" title="interface in java.util">Map</a>&lt;<a href="../../../java/lang/String.html" title="class in java.lang">String</a>,<a href="../../../java/lang/Object.html" title="class in java.lang">Object</a>&gt; getContext()</pre>
<div class="block">
获取包含的响应上下文。
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
<span>包含的响应上下文。</span>
<span>可能是<code>null</code> ,如果响应尚不可用。</span>
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>