Response (Java EE 5)

Java EE API


javax.xml.ws Interface Response<T>

All Superinterfaces:
Future<T>

public interface Response<T>
extends Future<T>

Implements: java.util.concurrent.Future<V>

Response 接口提供一些方法,用来获得为响应操作调用而发送的消息的净荷和上下文。

针对异步操作调用,它还提供了其他一些方法来检查请求状态。get(...) 方法可能抛出一组标准异常,这些异常的 cause 可能是 RemoteException 或 WebServiceException,表示在异步方法调用的过程中发生错误。

英文文档:

The Response interface provides methods used to obtain the payload and context of a message sent in response to an operation invocation.

For asynchronous operation invocations it provides additional methods to check the status of the request. The get(...) methods may throw the standard set of exceptions and their cause may be a RemoteException or a WebServiceException that represents the error that occured during the asynchronous method invocation.

Since:
JAX-WS 2.0

Method Summary
 Map<String,Object>
 
Methods inherited from interface java.util.concurrent.Future
 

Method Detail

public java.util.Map<K, V> getContext()
获取所含的响应上下文。
return 所含的响应上下文。如果响应尚不可用,则返回 null
英文文档:

getContext

Map<String,Object> getContext()
Gets the contained response context.

Returns:
The contained response context. May be null if a response is not yet available.


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!