Class JaxrsClientCallback<T>

    • Constructor Detail

      • JaxrsClientCallback

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

      • getHandler

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

        public Type getOutGenericType()
      • getResponseClass

        public Class<?> getResponseClass()
      • 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