org.apache.axis2.jaxws.client.async
Class AsyncResponse

java.lang.Object
  extended by org.apache.axis2.jaxws.client.async.AsyncResponse
Direct Known Subclasses:
JAXBDispatchAsyncListener, ProxyAsyncListener, XMLDispatchAsyncListener

public abstract class AsyncResponse
extends java.lang.Object

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.


Constructor Summary
protected AsyncResponse(EndpointDescription ed)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncResponse

protected AsyncResponse(EndpointDescription ed)
Method Detail

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)

get

public java.lang.Object get()
                     throws java.lang.InterruptedException,
                            java.util.concurrent.ExecutionException
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
Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException

isCancelled

public boolean isCancelled()

isDone

public boolean isDone()

getContext

public java.util.Map getContext()

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.