com.sun.xml.ws.client
Class ResponseImpl<T>
java.lang.Object
java.util.concurrent.FutureTask<T>
com.sun.xml.ws.client.ResponseImpl<T>
- All Implemented Interfaces:
- ResponseContextReceiver, Runnable, Future<T>, RunnableFuture<T>, javax.xml.ws.Response<T>
public final class ResponseImpl<T>
- extends FutureTask<T>
- implements javax.xml.ws.Response<T>, ResponseContextReceiver
Response
implementation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResponseImpl
public ResponseImpl(Callable<T> callable,
javax.xml.ws.AsyncHandler<T> handler)
- Parameters:
callable
- This Callable
is executed asynchronously.handler
- Optional AsyncHandler
to invoke at the end
of the processing. Can be null.
run
public void run()
- Specified by:
run
in interface Runnable
- Specified by:
run
in interface RunnableFuture<T>
- Overrides:
run
in class FutureTask<T>
set
protected void set(T v,
Throwable t)
getContext
public ResponseContext getContext()
- Specified by:
getContext
in interface javax.xml.ws.Response<T>
setResponseContext
public void setResponseContext(ResponseContext rc)
- Description copied from interface:
ResponseContextReceiver
- Called upon the completion of the invocation
to set a
ResponseContext
.
This method is invoked even when the invocation fails.
- Specified by:
setResponseContext
in interface ResponseContextReceiver