public class JaxrsClientCallback<T> extends ClientCallback
| Constructor and Description |
|---|
JaxrsClientCallback(javax.ws.rs.client.InvocationCallback<T> handler,
Class<?> responseClass,
Type outGenericType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
Future<T> |
createFuture() |
javax.ws.rs.client.InvocationCallback<T> |
getHandler() |
Type |
getOutGenericType() |
Class<?> |
getResponseClass() |
void |
handleException(Map<String,Object> ctx,
Throwable ex)
If processing of the incoming message results in an exception, this
method is called with the resulting exception.
|
void |
handleResponse(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.
|
get, get, getException, getResponseContext, isCancelled, isDone, startpublic javax.ws.rs.client.InvocationCallback<T> getHandler()
public Type getOutGenericType()
public Class<?> getResponseClass()
public boolean cancel(boolean mayInterruptIfRunning)
cancel in interface Future<Object[]>cancel in class ClientCallbackpublic void handleResponse(Map<String,Object> ctx, Object[] res)
ClientCallbackhandleResponse in class ClientCallbackpublic void handleException(Map<String,Object> ctx, Throwable ex)
ClientCallbackhandleException in class ClientCallbackApache CXF