public Endpoint getEndpoint() { return conduitSelector == null ? null : conduitSelector.getEndpoint(); }
protected void setEndpoint(Endpoint e) { getConduitSelector().setEndpoint(e); }
private void completeExchange(Exchange exchange) { getConduitSelector().complete(exchange); }
protected ConduitSelector prepareConduitSelector( org.apache.cxf.message.Message message) { ConduitSelector conduitSelector = new UpfrontConduitSelector(); conduitSelector.setEndpoint(endpoint); setExchangeProperties(message.getExchange(), endpoint); conduitSelector.prepare(message); message.getExchange().put(ConduitSelector.class, conduitSelector); return conduitSelector; }
/** * Gets the conduit responsible for a transport-level * communication with the remote service. * @return the conduit */ public Conduit getConduit() { Message message = new MessageImpl(); Exchange exchange = new ExchangeImpl(); message.setExchange(exchange); exchange.put(MessageObserver.class, new ClientMessageObserver(this)); if (conduitSelector != null) { exchange.put(Endpoint.class, conduitSelector.getEndpoint()); } exchange.put(Bus.class, bus); prepareConduitSelector(message); return getConduitSelector().selectConduit(message); }
endpoint = getConduitSelector().getEndpoint(); message.getExchange().put(Endpoint.class, endpoint); if (callback != null) { if (callback.isCancelled()) { getConduitSelector().complete(message.getExchange()); return;
public Conduit getConduit(Message message) { return get(ConduitSelector.class) != null ? get(ConduitSelector.class).selectConduit(message) : null; }
void prepareConduitSelector(Message message) { try { getConduitSelector().prepare(message); } catch (Fault ex) { LOG.fine("Failure to prepare a message from conduit selector"); } }
/** * Gets the conduit responsible for a transport-level * communication with the remote service. * @return the conduit */ public Conduit getConduit() { Message message = new MessageImpl(); Exchange exchange = new ExchangeImpl(); message.setExchange(exchange); exchange.put(MessageObserver.class, new ClientMessageObserver(this)); if (conduitSelector != null) { exchange.put(Endpoint.class, conduitSelector.getEndpoint()); } exchange.put(Bus.class, bus); prepareConduitSelector(message); return getConduitSelector().selectConduit(message); }
endpoint = getConduitSelector().getEndpoint(); message.getExchange().put(Endpoint.class, endpoint); if (callback != null) { if (callback.isCancelled()) { getConduitSelector().complete(message.getExchange()); return;
public Conduit getConduit(Message message) { return get(ConduitSelector.class) != null ? get(ConduitSelector.class).selectConduit(message) : null; }
void prepareConduitSelector(Message message) { try { getConduitSelector().prepare(message); } catch (Fault ex) { LOG.fine("Failure to prepare a message from conduit selector"); } }
public Endpoint getEndpoint() { return conduitSelector == null ? null : conduitSelector.getEndpoint(); }
protected void setEndpoint(Endpoint e) { getConduitSelector().setEndpoint(e); }
/** * Gets the conduit responsible for a transport-level * communication with the remote service. * @return the conduit */ public Conduit getConduit() { Message message = new MessageImpl(); Exchange exchange = new ExchangeImpl(); message.setExchange(exchange); exchange.put(MessageObserver.class, new ClientMessageObserver(this)); if (conduitSelector != null) { exchange.put(Endpoint.class, conduitSelector.getEndpoint()); } exchange.put(Bus.class, bus); prepareConduitSelector(message); return getConduitSelector().selectConduit(message); }
private void completeExchange(Exchange exchange) { getConduitSelector().complete(exchange); }
public Conduit getConduit(Message message) { return get(ConduitSelector.class) != null ? get(ConduitSelector.class).selectConduit(message) : null; }
void prepareConduitSelector(Message message) { try { getConduitSelector().prepare(message); } catch (Fault ex) { LOG.fine("Failure to prepare a message from conduit selector"); } }
public Endpoint getEndpoint() { return conduitSelector == null ? null : conduitSelector.getEndpoint(); } }
protected void setEndpoint(Endpoint e) { getConduitSelector().setEndpoint(e); }