protected JaxrsClientCallback<?> newJaxrsClientCallback(InvocationCallback<Object> asyncCallback, Class<?> responseClass, Type outGenericType) { return new JaxrsClientCallback<>(asyncCallback, responseClass, outGenericType); }
protected JaxrsClientCallback<?> newJaxrsClientCallback(InvocationCallback<Object> asyncCallback, Class<?> responseClass, Type outGenericType) { return new JaxrsClientCallback<>(asyncCallback, responseClass, outGenericType); }
protected <T> Future<T> doInvokeAsync(String httpMethod, Object body, Class<?> requestClass, Type inType, Class<?> respClass, Type outType, InvocationCallback<T> callback) { JaxrsClientCallback<T> cb = new JaxrsClientCallback<>(callback, respClass, outType); prepareAsyncClient(httpMethod, body, requestClass, inType, respClass, outType, cb); return cb.createFuture(); }
protected <T> Future<T> doInvokeAsync(String httpMethod, Object body, Class<?> requestClass, Type inType, Class<?> respClass, Type outType, InvocationCallback<T> callback) { JaxrsClientCallback<T> cb = new JaxrsClientCallback<>(callback, respClass, outType); prepareAsyncClient(httpMethod, body, requestClass, inType, respClass, outType, cb); return cb.createFuture(); }
JaxrsClientCallback<T> cb = new JaxrsClientCallback<T>(callback, respClass, outType); m.getExchange().put(JaxrsClientCallback.class, cb);