protected Object doInvokeAsync(OperationResourceInfo ori, Message outMessage, InvocationCallback<Object> asyncCallback) { outMessage.getExchange().setSynchronous(false); setAsyncMessageObserverIfNeeded(outMessage.getExchange()); JaxrsClientCallback<?> cb = newJaxrsClientCallback(asyncCallback, ori.getMethodToInvoke().getReturnType(), ori.getMethodToInvoke().getGenericReturnType()); outMessage.getExchange().put(JaxrsClientCallback.class, cb); doRunInterceptorChain(outMessage); return null; }
protected Object doInvokeAsync(OperationResourceInfo ori, Message outMessage, InvocationCallback<Object> asyncCallback) { outMessage.getExchange().setSynchronous(false); setAsyncMessageObserverIfNeeded(outMessage.getExchange()); JaxrsClientCallback<?> cb = newJaxrsClientCallback(asyncCallback, ori.getMethodToInvoke().getReturnType(), ori.getMethodToInvoke().getGenericReturnType()); outMessage.getExchange().put(JaxrsClientCallback.class, cb); doRunInterceptorChain(outMessage); return null; }
inAnns, respClass, outType, null, null); m.getExchange().setSynchronous(false); setAsyncMessageObserverIfNeeded(m.getExchange()); m.getExchange().put(JaxrsClientCallback.class, cb);
inAnns, respClass, outType, null, null); m.getExchange().setSynchronous(false); setAsyncMessageObserverIfNeeded(m.getExchange()); m.getExchange().put(JaxrsClientCallback.class, cb);
exchange = new ExchangeImpl(); exchange.setSynchronous(callback == null); Endpoint endpoint = getEndpoint(); if (LOG.isLoggable(Level.FINE)) {
exchange = new ExchangeImpl(); exchange.setSynchronous(callback == null); Endpoint endpoint = getEndpoint(); if (LOG.isLoggable(Level.FINE)) {
exchange = new ExchangeImpl(); exchange.setSynchronous(callback == null); Endpoint endpoint = getEndpoint(); if (LOG.isLoggable(Level.FINE)) {
protected Exchange createExchange(Message m, Exchange exchange) { if (exchange == null) { exchange = new ExchangeImpl(); } exchange.setSynchronous(true); exchange.setOutMessage(m); exchange.put(Bus.class, cfg.getBus()); exchange.put(MessageObserver.class, new ClientMessageObserver(cfg)); exchange.put(Endpoint.class, cfg.getConduitSelector().getEndpoint()); exchange.put("org.apache.cxf.transport.no_io_exceptions", true); //REVISIT - when response handling is actually put onto the in chain, this will likely not be needed exchange.put(StaxInEndingInterceptor.STAX_IN_NOCLOSE, Boolean.TRUE); m.setExchange(exchange); return exchange; }
protected Exchange createExchange(Message m, Exchange exchange) { if (exchange == null) { exchange = new ExchangeImpl(); } exchange.setSynchronous(true); exchange.setOutMessage(m); exchange.put(Bus.class, cfg.getBus()); exchange.put(MessageObserver.class, new ClientMessageObserver(cfg)); exchange.put(Endpoint.class, cfg.getConduitSelector().getEndpoint()); exchange.put("org.apache.cxf.transport.no_io_exceptions", true); //REVISIT - when response handling is actually put onto the in chain, this will likely not be needed exchange.put(StaxInEndingInterceptor.STAX_IN_NOCLOSE, Boolean.TRUE); m.setExchange(exchange); return exchange; }
protected Exchange createExchange(Message m, Exchange exchange) { if (exchange == null) { exchange = new ExchangeImpl(); } exchange.setSynchronous(true); exchange.setOutMessage(m); exchange.put(Bus.class, cfg.getBus()); exchange.put(MessageObserver.class, new ClientMessageObserver(cfg)); exchange.put(Endpoint.class, cfg.getConduitSelector().getEndpoint()); exchange.put("org.apache.cxf.transport.no_io_exceptions", true); //REVISIT - when response handling is actually put onto the in chain, this will likely not be needed exchange.put(StaxInEndingInterceptor.STAX_IN_NOCLOSE, Boolean.TRUE); m.setExchange(exchange); return exchange; }
exchange = new ExchangeImpl(); exchange.setSynchronous(callback == null); Endpoint endpoint = getEndpoint(); if (LOG.isLoggable(Level.FINE)) {
respClass, outType, null, null); m.getExchange().setSynchronous(false); JaxrsClientCallback<T> cb = new JaxrsClientCallback<T>(callback, respClass, outType); m.getExchange().put(JaxrsClientCallback.class, cb);
Exchange cxfExchange = new ExchangeImpl(); cxfExchange.setConduit(conduit); cxfExchange.setSynchronous(isSynchronous()); cxfExchange.put(MessageExchange.class, exchange);