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
public class JaxrsClientCallback<T> extends ClientCallback
-
-
Field Summary
-
Fields inherited from class org.apache.cxf.endpoint.ClientCallback
context, delegate, started
-
-
Constructor Summary
Constructors Constructor Description JaxrsClientCallback(javax.ws.rs.client.InvocationCallback<T> handler, Class<?> responseClass, Type outGenericType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)Future<T>createFuture()javax.ws.rs.client.InvocationCallback<T>getHandler()TypegetOutGenericType()Class<?>getResponseClass()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
-
-
-
-
Method Detail
-
getHandler
public javax.ws.rs.client.InvocationCallback<T> getHandler()
-
getOutGenericType
public Type getOutGenericType()
-
getResponseClass
public Class<?> getResponseClass()
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
- Specified by:
cancelin interfaceFuture<T>- Overrides:
cancelin classClientCallback
-
handleResponse
public void handleResponse(Map<String,Object> ctx, Object[] res)
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
public void handleException(Map<String,Object> ctx, Throwable ex)
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
-
-