public class JaxrsClientCallback<T> extends ClientCallback
context, delegate, started
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, getResponseContext, isCancelled, isDone, start
public 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 ClientCallback
public void handleResponse(Map<String,Object> ctx, Object[] res)
ClientCallback
handleResponse
in class ClientCallback
public void handleException(Map<String,Object> ctx, Throwable ex)
ClientCallback
handleException
in class ClientCallback
Apache CXF