protected void setEndpoint(Endpoint e) { getConduitSelector().setEndpoint(e); }
protected void setEndpoint(Endpoint e) { getConduitSelector().setEndpoint(e); }
protected void setEndpoint(Endpoint e) { getConduitSelector().setEndpoint(e); }
protected void setEndpoint(Endpoint e) { getConduitSelector().setEndpoint(e); }
protected ConduitSelector getConduitSelector(Endpoint ep) { ConduitSelector cs = getConduitSelector(); if (cs == null) { cs = new UpfrontConduitSelector(); } cs.setEndpoint(ep); return cs; }
protected ConduitSelector getConduitSelector(Endpoint ep) { ConduitSelector cs = getConduitSelector(); if (cs == null) { cs = new UpfrontConduitSelector(); } cs.setEndpoint(ep); return cs; }
protected ConduitSelector getConduitSelector(Endpoint ep) { ConduitSelector cs = getConduitSelector(); if (cs == null) { cs = new UpfrontConduitSelector(); } cs.setEndpoint(ep); return cs; }
public ClientImpl(Bus b, Endpoint e, ConduitSelector sc) { bus = b; outFaultObserver = new ClientOutFaultObserver(bus); getConduitSelector(sc).setEndpoint(e); notifyLifecycleManager(); }
public ClientImpl(Bus b, Endpoint e, ConduitSelector sc) { bus = b; outFaultObserver = new ClientOutFaultObserver(bus); getConduitSelector(sc).setEndpoint(e); notifyLifecycleManager(); }
public ClientImpl(Bus b, Endpoint e, ConduitSelector sc) { bus = b; outFaultObserver = new ClientOutFaultObserver(bus); getConduitSelector(sc).setEndpoint(e); notifyLifecycleManager(); }
@Override protected ConduitSelector getConduitSelector(final Endpoint ep) { ConduitSelector cs = getConduitSelector(); if (cs == null) { try { cs = new UpfrontConduitSelector(new BatchOfflineHTTPConduit(bus, ep.getEndpointInfo())); } catch (IOException e) { throw new IllegalArgumentException("Could not create " + BatchOfflineHTTPConduit.class.getName(), e); } } cs.setEndpoint(ep); return cs; }
public ClientImpl(Bus b, Endpoint e, ConduitSelector sc) { bus = b; outFaultObserver = new ClientOutFaultObserver(bus); getConduitSelector(sc).setEndpoint(e); notifyLifecycleManager(); }
@Override protected ConduitSelector getConduitSelector(final Endpoint ep) { ConduitSelector cs = getConduitSelector(); if (cs == null) { try { cs = new UpfrontConduitSelector(new BatchOfflineHTTPConduit(bus, ep.getEndpointInfo())); } catch (IOException e) { throw new IllegalArgumentException("Could not create " + BatchOfflineHTTPConduit.class.getName(), e); } } cs.setEndpoint(ep); return cs; }
@Override public void initialize(Client client, Bus bus) { ConduitSelector selector = new DeferredConduitSelector(); selector.setEndpoint(client.getEndpoint()); client.setConduitSelector(selector); initializeProvider(client, bus); }
@Override public void initialize(Client client, Bus bus) { ConduitSelector selector = new DeferredConduitSelector(); selector.setEndpoint(client.getEndpoint()); client.setConduitSelector(selector); initializeProvider(client, bus); }
/** * Create a Client that uses a specific EndpointImpl. * @param bus * @param svc * @param port * @param endpointImplFactory */ public ClientImpl(Bus bus, Service svc, QName port, EndpointImplFactory endpointImplFactory) { this.bus = bus; outFaultObserver = new ClientOutFaultObserver(bus); EndpointInfo epfo = findEndpoint(svc, port); try { if (endpointImplFactory != null) { getConduitSelector().setEndpoint(endpointImplFactory.newEndpointImpl(bus, svc, epfo)); } else { getConduitSelector().setEndpoint(new EndpointImpl(bus, svc, epfo)); } } catch (EndpointException epex) { throw new IllegalStateException("Unable to create endpoint: " + epex.getMessage(), epex); } notifyLifecycleManager(); }
/** * Create a Client that uses a specific EndpointImpl. * @param bus * @param svc * @param port * @param endpointImplFactory */ public ClientImpl(Bus bus, Service svc, QName port, EndpointImplFactory endpointImplFactory) { this.bus = bus; outFaultObserver = new ClientOutFaultObserver(bus); EndpointInfo epfo = findEndpoint(svc, port); try { if (endpointImplFactory != null) { getConduitSelector().setEndpoint(endpointImplFactory.newEndpointImpl(bus, svc, epfo)); } else { getConduitSelector().setEndpoint(new EndpointImpl(bus, svc, epfo)); } } catch (EndpointException epex) { throw new IllegalStateException("Unable to create endpoint: " + epex.getMessage(), epex); } notifyLifecycleManager(); }
/** * Create a Client that uses a specific EndpointImpl. * @param bus * @param svc * @param port * @param endpointImplFactory */ public ClientImpl(Bus bus, Service svc, QName port, EndpointImplFactory endpointImplFactory) { this.bus = bus; outFaultObserver = new ClientOutFaultObserver(bus); EndpointInfo epfo = findEndpoint(svc, port); try { if (endpointImplFactory != null) { getConduitSelector().setEndpoint(endpointImplFactory.newEndpointImpl(bus, svc, epfo)); } else { getConduitSelector().setEndpoint(new EndpointImpl(bus, svc, epfo)); } } catch (EndpointException epex) { throw new IllegalStateException("Unable to create endpoint: " + epex.getMessage(), epex); } notifyLifecycleManager(); }
/** * Create a Client that uses a specific EndpointImpl. * @param bus * @param svc * @param port * @param endpointImplFactory */ public ClientImpl(Bus bus, Service svc, QName port, EndpointImplFactory endpointImplFactory) { this.bus = bus; outFaultObserver = new ClientOutFaultObserver(bus); EndpointInfo epfo = findEndpoint(svc, port); try { if (endpointImplFactory != null) { getConduitSelector().setEndpoint(endpointImplFactory.newEndpointImpl(bus, svc, epfo)); } else { getConduitSelector().setEndpoint(new EndpointImpl(bus, svc, epfo)); } } catch (EndpointException epex) { throw new IllegalStateException("Unable to create endpoint: " + epex.getMessage(), epex); } notifyLifecycleManager(); }
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; }