org.apache.axis2.jaxws.client.async
Class AsyncResponse
java.lang.Object
org.apache.axis2.jaxws.client.async.AsyncResponse
All Implemented Interfaces: java.util.concurrent.Future, Response
Direct Known Subclasses: JAXBDispatchAsyncListener , ProxyAsyncListener , XMLDispatchAsyncListener
public abstract class AsyncResponse extends java.lang.Objectimplements Response
The AsyncResponse class is used to collect the response information from Axis2 and deliver it to
a JAX-WS client. AsyncResponse implements the javax.xml.ws.Response API that is
defined in the JAX-WS 2.0 specification. The 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.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
AsyncResponse
protected AsyncResponse (EndpointDescription ed)
onError
protected void onError (java.lang.Throwable flt,
MessageContext mc,
java.lang.ClassLoader cl)
onError
protected void onError (java.lang.Throwable flt,
MessageContext faultCtx)
onComplete
protected void onComplete (MessageContext mc,
java.lang.ClassLoader cl)
onComplete
protected void onComplete (MessageContext mc)
cancel
public boolean cancel (boolean mayInterruptIfRunning)
Specified by: cancel
in interface java.util.concurrent.Future
get
public java.lang.Object get ()
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException
Specified by: get
in interface java.util.concurrent.Future
Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
get
public java.lang.Object get (long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.util.concurrent.TimeoutException
Specified by: get
in interface java.util.concurrent.Future
Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
isCancelled
public boolean isCancelled ()
Specified by: isCancelled
in interface java.util.concurrent.Future
isDone
public boolean isDone ()
Specified by: isDone
in interface java.util.concurrent.Future
getContext
public java.util.Map getContext ()
Specified by: getContext
in interface Response
getResponseValueObject
public abstract java.lang.Object getResponseValueObject (MessageContext mc)
getFaultResponse
public abstract java.lang.Throwable getFaultResponse (MessageContext mc)
Copyright © 2007 Apache Web Services Project. All Rights Reserved.