KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > ws > Response


1 /*
2  * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4  */

5
6 package javax.xml.ws;
7
8 import java.util.Map JavaDoc;
9 import java.util.concurrent.Future JavaDoc;
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 JavaDoc<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 JavaDoc<String JavaDoc,Object JavaDoc> getContext();
32 }
33
Popular Tags