Class JaxrsClientCallback<T>

java.lang.Object
org.apache.cxf.endpoint.ClientCallback
org.apache.cxf.jaxrs.client.JaxrsClientCallback<T>
All Implemented Interfaces:
Future<Object[]>
Direct Known Subclasses:
MPRestClientCallback

public class JaxrsClientCallback<T> extends ClientCallback
  • Constructor Details

    • JaxrsClientCallback

      public JaxrsClientCallback(jakarta.ws.rs.client.InvocationCallback<T> handler, Class<?> responseClass, Type outGenericType)
  • Method Details

    • getHandler

      public jakarta.ws.rs.client.InvocationCallback<T> getHandler()
    • getOutGenericType

      public Type getOutGenericType()
    • getResponseClass

      public Class<?> getResponseClass()
    • cancel

      public boolean cancel(boolean mayInterruptIfRunning)
      Specified by:
      cancel in interface Future<T>
      Overrides:
      cancel in class ClientCallback
    • createFuture

      public Future<T> createFuture()
    • handleResponse

      public void handleResponse(Map<String,Object> ctx, Object[] res)
      Description copied from class: ClientCallback
      If 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:
      handleResponse in class ClientCallback
    • handleException

      public void handleException(Map<String,Object> ctx, Throwable ex)
      Description copied from class: ClientCallback
      If 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:
      handleException in class ClientCallback