public abstract class AsyncResponse
extends java.lang.Object
implements javax.xml.ws.Response
Response object will contain both the
object that is returned as the response along with a java.util.Map with the context
information of the response.| Modifier | Constructor and Description |
|---|---|
protected |
AsyncResponse(EndpointDescription ed) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
java.lang.Object |
get() |
java.lang.Object |
get(long timeout,
java.util.concurrent.TimeUnit unit) |
java.util.Map |
getContext() |
abstract java.lang.Throwable |
getFaultResponse(MessageContext mc) |
abstract java.lang.Object |
getResponseValueObject(MessageContext mc) |
boolean |
isCancelled() |
boolean |
isDone() |
protected void |
onComplete(MessageContext mc) |
protected void |
onComplete(MessageContext mc,
java.lang.ClassLoader cl) |
protected void |
onError(java.lang.Throwable flt,
MessageContext faultCtx) |
protected void |
onError(java.lang.Throwable flt,
MessageContext mc,
java.lang.ClassLoader cl) |
protected AsyncResponse(EndpointDescription ed)
protected void onError(java.lang.Throwable flt,
MessageContext mc,
java.lang.ClassLoader cl)
protected void onError(java.lang.Throwable flt,
MessageContext faultCtx)
flt - Throwable fault that occurredfaultCtx - MessageContext if fault is a SOAP Faultprotected void onComplete(MessageContext mc, java.lang.ClassLoader cl)
protected void onComplete(MessageContext mc)
public boolean cancel(boolean mayInterruptIfRunning)
cancel in interface java.util.concurrent.Futurepublic java.lang.Object get()
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException
get in interface java.util.concurrent.Futurejava.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionpublic java.lang.Object get(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.util.concurrent.TimeoutException
get in interface java.util.concurrent.Futurejava.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.util.concurrent.TimeoutExceptionpublic boolean isCancelled()
isCancelled in interface java.util.concurrent.Futurepublic boolean isDone()
isDone in interface java.util.concurrent.Futurepublic java.util.Map getContext()
getContext in interface javax.xml.ws.Responsepublic abstract java.lang.Object getResponseValueObject(MessageContext mc)
public abstract java.lang.Throwable getFaultResponse(MessageContext mc)
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.