Response (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.ws Interface Response<T>

所有父接口:
Future<T>

public interface Response<T>
extends Future<T>

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.

从以下版本开始:
JAX-WS 2.0

方法摘要
 Map<String,Object> getContext()
          Gets the contained response context.
 
Methods inherited from interface java.util.concurrent.Future
cancel, get, get, isCancelled, isDone
 

方法详细信息

getContext

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

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

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.