Package org.apache.cxf.jaxrs.client
Class JaxrsClientCallback<T>
java.lang.Object
org.apache.cxf.endpoint.ClientCallback
org.apache.cxf.jaxrs.client.JaxrsClientCallback<T>
- Direct Known Subclasses:
MPRestClientCallback
-
Field Summary
Fields inherited from class org.apache.cxf.endpoint.ClientCallback
context, delegate, started -
Constructor Summary
ConstructorsConstructorDescriptionJaxrsClientCallback(jakarta.ws.rs.client.InvocationCallback<T> handler, Class<?> responseClass, Type outGenericType) -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel(boolean mayInterruptIfRunning) jakarta.ws.rs.client.InvocationCallback<T>Class<?>voidhandleException(Map<String, Object> ctx, Throwable ex) If processing of the incoming message results in an exception, this method is called with the resulting exception.voidhandleResponse(Map<String, Object> ctx, Object[] res) If the processing of the incoming message proceeds normally, this method is called with the response context values and the resulting objects.Methods inherited from class org.apache.cxf.endpoint.ClientCallback
get, get, getResponseContext, isCancelled, isDone, start
-
Constructor Details
-
JaxrsClientCallback
-
-
Method Details
-
getHandler
-
getOutGenericType
-
getResponseClass
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) - Specified by:
cancelin interfaceFuture<T>- Overrides:
cancelin classClientCallback
-
createFuture
-
handleResponse
Description copied from class:ClientCallbackIf the processing of the incoming message proceeds normally, this method is called with the response context values and the resulting objects. The default behavior just stores the objects and calls notifyAll to wake up threads waiting for the response.- Overrides:
handleResponsein classClientCallback
-
handleException
Description copied from class:ClientCallbackIf processing of the incoming message results in an exception, this method is called with the resulting exception. The default behavior just stores the objects and calls notifyAll to wake up threads waiting for the response.- Overrides:
handleExceptionin classClientCallback
-