Class AsyncResponse
java.lang.Object
org.apache.axis2.jaxws.client.async.AsyncResponse
- All Implemented Interfaces:
jakarta.xml.ws.Response,Future
- Direct Known Subclasses:
JAXBDispatchAsyncListener,ProxyAsyncListener,XMLDispatchAsyncListener
The AsyncResponse class is used to collect the response information from Axis2 and deliver it to
a JAX-WS client. AsyncResponse implements the jakarta.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
ConstructorsModifierConstructorDescriptionprotectedAsyncResponse(org.apache.axis2.jaxws.description.EndpointDescription ed) -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel(boolean mayInterruptIfRunning) get()abstract Throwableabstract ObjectbooleanbooleanisDone()protected voidprotected voidonComplete(MessageContext mc, ClassLoader cl) protected voidonError(Throwable flt, MessageContext faultCtx) protected voidonError(Throwable flt, MessageContext mc, ClassLoader cl)
-
Constructor Details
-
AsyncResponse
protected AsyncResponse(org.apache.axis2.jaxws.description.EndpointDescription ed)
-
-
Method Details
-
onError
-
onError
- Parameters:
flt- Throwable fault that occurredfaultCtx- MessageContext if fault is a SOAP Fault
-
onComplete
-
onComplete
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
get
- Specified by:
getin interfaceFuture- Throws:
InterruptedExceptionExecutionException
-
get
public Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture
-
isDone
public boolean isDone() -
getContext
- Specified by:
getContextin interfacejakarta.xml.ws.Response
-
getResponseValueObject
-
getFaultResponse
-