@Override protected Object doInvokeAsync(OperationResourceInfo ori, Message outMessage, InvocationCallback<Object> asyncCallback) { MPAsyncInvocationInterceptorImpl aiiImpl = new MPAsyncInvocationInterceptorImpl(outMessage); outMessage.getInterceptorChain().add(aiiImpl); List<Interceptor<? extends Message>>inboundChain = cfg.getInInterceptors(); inboundChain.add(new MPAsyncInvocationInterceptorPostAsyncImpl(aiiImpl.getInterceptors())); inboundChain.add(new MPAsyncInvocationInterceptorRemoveContextImpl(aiiImpl.getInterceptors())); setTimeouts(cfg.getRequestContext()); super.doInvokeAsync(ori, outMessage, asyncCallback); JaxrsClientCallback<?> cb = outMessage.getExchange().get(JaxrsClientCallback.class); return cb.createFuture(); }
@Override protected Object doInvokeAsync(OperationResourceInfo ori, Message outMessage, InvocationCallback<Object> asyncCallback) { MPAsyncInvocationInterceptorImpl aiiImpl = new MPAsyncInvocationInterceptorImpl(outMessage); outMessage.getInterceptorChain().add(aiiImpl); List<Interceptor<? extends Message>>inboundChain = cfg.getInInterceptors(); inboundChain.add(new MPAsyncInvocationInterceptorPostAsyncImpl(aiiImpl.getInterceptors())); inboundChain.add(new MPAsyncInvocationInterceptorRemoveContextImpl(aiiImpl.getInterceptors())); setTimeouts(cfg.getRequestContext()); super.doInvokeAsync(ori, outMessage, asyncCallback); JaxrsClientCallback<?> cb = outMessage.getExchange().get(JaxrsClientCallback.class); return cb.createFuture(); }
return doInvokeAsync(ori, outMessage, asyncCallback);
return doInvokeAsync(ori, outMessage, asyncCallback);