public Endpoint getEndpoint() { return conduitSelector == null ? null : conduitSelector.getEndpoint(); }
public Endpoint getEndpoint() { return conduitSelector == null ? null : conduitSelector.getEndpoint(); }
public Endpoint getEndpoint() { return conduitSelector == null ? null : conduitSelector.getEndpoint(); } }
public Endpoint getEndpoint() { return getConduitSelector().getEndpoint(); }
public Endpoint getEndpoint() { return getConduitSelector().getEndpoint(); }
public Endpoint getEndpoint() { return getConduitSelector().getEndpoint(); }
public void initialize(ConduitSelectorHolder conduitSelectorHolder, Bus bus) { if (LOG.isLoggable(Level.FINE)) { LOG.log(Level.FINE, "Initializing locator feature for bus " + bus + " and client configuration" + conduitSelectorHolder); } ConduitSelector conduitSelector = conduitSelectorHolder.getConduitSelector(); String selectionStrategy = (String)conduitSelector.getEndpoint().get(KEY_STRATEGY); Map<String, String> endpointProps = getEndpointLocatorProperties(conduitSelector.getEndpoint()); SLPropertiesMatcher slPropsMatcher = createMatcher(endpointProps); final ConduitSelectorHolder conduitSelectorHolder1 = conduitSelectorHolder; clientEnabler.enable(conduitSelectorHolder1, slPropsMatcher, selectionStrategy); }
public void initialize(ConduitSelectorHolder conduitSelectorHolder, Bus bus) { if (LOG.isLoggable(Level.FINE)) { LOG.log(Level.FINE, "Initializing locator feature for bus " + bus + " and client configuration" + conduitSelectorHolder); } ConduitSelector conduitSelector = conduitSelectorHolder.getConduitSelector(); String selectionStrategy = (String)conduitSelector.getEndpoint().get(KEY_STRATEGY); Map<String, String> endpointProps = getEndpointLocatorProperties(conduitSelector.getEndpoint()); SLPropertiesMatcher slPropsMatcher = createMatcher(endpointProps); final ConduitSelectorHolder conduitSelectorHolder1 = conduitSelectorHolder; clientEnabler.enable(conduitSelectorHolder1, slPropsMatcher, selectionStrategy); }
@Override public void initialize(Client client, Bus bus) { ConduitSelector selector = initTargetSelector(client.getConduitSelector().getEndpoint()); client.setConduitSelector(selector); }
@Override protected void initializeProvider(InterceptorProvider provider, Bus bus) { if (provider instanceof ConduitSelectorHolder) { ConduitSelectorHolder csHolder = (ConduitSelectorHolder) provider; Endpoint endpoint = csHolder.getConduitSelector().getEndpoint(); ConduitSelector conduitSelector = initTargetSelector(endpoint); csHolder.setConduitSelector(conduitSelector); } }
@Override protected void initializeProvider(InterceptorProvider provider, Bus bus) { if (provider instanceof ConduitSelectorHolder) { ConduitSelectorHolder csHolder = (ConduitSelectorHolder) provider; Endpoint endpoint = csHolder.getConduitSelector().getEndpoint(); ConduitSelector conduitSelector = initTargetSelector(endpoint); csHolder.setConduitSelector(conduitSelector); } }
@Override public void initialize(Client client, Bus bus) { ConduitSelector selector = initTargetSelector(client.getConduitSelector().getEndpoint()); client.setConduitSelector(selector); }
protected String getCurrentEndpointAddress(Object client) { return WebClient.getConfig(client).getConduitSelector() .getEndpoint().getEndpointInfo().getAddress(); }
protected static PhaseInterceptorChain setupInInterceptorChain(ClientConfiguration cfg) { PhaseManager pm = cfg.getBus().getExtension(PhaseManager.class); List<Interceptor<? extends Message>> i1 = cfg.getBus().getInInterceptors(); List<Interceptor<? extends Message>> i2 = cfg.getInInterceptors(); List<Interceptor<? extends Message>> i3 = cfg.getConduitSelector().getEndpoint().getInInterceptors(); PhaseInterceptorChain chain = new PhaseChainCache().get(pm.getInPhases(), i1, i2, i3); chain.add(new ClientResponseFilterInterceptor()); return chain; }
protected static PhaseInterceptorChain setupOutInterceptorChain(ClientConfiguration cfg) { PhaseManager pm = cfg.getBus().getExtension(PhaseManager.class); List<Interceptor<? extends Message>> i1 = cfg.getBus().getOutInterceptors(); List<Interceptor<? extends Message>> i2 = cfg.getOutInterceptors(); List<Interceptor<? extends Message>> i3 = cfg.getConduitSelector().getEndpoint().getOutInterceptors(); PhaseInterceptorChain chain = new PhaseChainCache().get(pm.getOutPhases(), i1, i2, i3); chain.add(new ClientRequestFilterInterceptor()); return chain; }
protected static PhaseInterceptorChain setupOutInterceptorChain(ClientConfiguration cfg) { PhaseManager pm = cfg.getBus().getExtension(PhaseManager.class); List<Interceptor<? extends Message>> i1 = cfg.getBus().getOutInterceptors(); List<Interceptor<? extends Message>> i2 = cfg.getOutInterceptors(); List<Interceptor<? extends Message>> i3 = cfg.getConduitSelector().getEndpoint().getOutInterceptors(); PhaseInterceptorChain chain = new PhaseChainCache().get(pm.getOutPhases(), i1, i2, i3); chain.add(new ClientRequestFilterInterceptor()); return chain; }
protected static PhaseInterceptorChain setupOutInterceptorChain(ClientConfiguration cfg) { PhaseManager pm = cfg.getBus().getExtension(PhaseManager.class); List<Interceptor<? extends Message>> i1 = cfg.getBus().getOutInterceptors(); List<Interceptor<? extends Message>> i2 = cfg.getOutInterceptors(); List<Interceptor<? extends Message>> i3 = cfg.getConduitSelector().getEndpoint().getOutInterceptors(); PhaseInterceptorChain chain = new PhaseChainCache().get(pm.getOutPhases(), i1, i2, i3); chain.add(new ClientRequestFilterInterceptor()); return chain; }
protected static PhaseInterceptorChain setupInInterceptorChain(ClientConfiguration cfg) { PhaseManager pm = cfg.getBus().getExtension(PhaseManager.class); List<Interceptor<? extends Message>> i1 = cfg.getBus().getInInterceptors(); List<Interceptor<? extends Message>> i2 = cfg.getInInterceptors(); List<Interceptor<? extends Message>> i3 = cfg.getConduitSelector().getEndpoint().getInInterceptors(); PhaseInterceptorChain chain = new PhaseChainCache().get(pm.getInPhases(), i1, i2, i3); chain.add(new ClientResponseFilterInterceptor()); return chain; }
protected static PhaseInterceptorChain setupInInterceptorChain(ClientConfiguration cfg) { PhaseManager pm = cfg.getBus().getExtension(PhaseManager.class); List<Interceptor<? extends Message>> i1 = cfg.getBus().getInInterceptors(); List<Interceptor<? extends Message>> i2 = cfg.getInInterceptors(); List<Interceptor<? extends Message>> i3 = cfg.getConduitSelector().getEndpoint().getInInterceptors(); PhaseInterceptorChain chain = new PhaseChainCache().get(pm.getInPhases(), i1, i2, i3); chain.add(new ClientResponseFilterInterceptor()); return chain; }
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; }