01: /*
02: * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
03: * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
04: */
05:
06: package javax.xml.ws;
07:
08: import java.util.Map;
09: import java.util.concurrent.Future;
10:
11: /** The <code>Response</code> interface provides methods used to obtain the
12: * payload and context of a message sent in response to an operation
13: * invocation.
14: *
15: * <p>For asynchronous operation invocations it provides additional methods
16: * to check the status of the request. The <code>get(...)</code> methods may
17: * throw the standard
18: * set of exceptions and their cause may be a <code>RemoteException</code> or a
19: * {@link WebServiceException} that represents the error that occured during the
20: * asynchronous method invocation.</p>
21: *
22: * @since JAX-WS 2.0
23: **/
24: public interface Response<T> extends Future<T> {
25: /** Gets the contained response context.
26: *
27: * @return The contained response context. May be <code>null</code> if a
28: * response is not yet available.
29: *
30: **/
31: Map<String, Object> getContext();
32: }
|