@Override public Configuration getConfiguration() { return delegate.getConfiguration(); }
@Override public Configuration getConfiguration() { return delegate.getConfiguration(); }
@Override public Configuration getConfiguration() { return base.getConfiguration(); }
@Override public Configuration getConfiguration() { return webTarget.getConfiguration(); }
@Override public Configuration getConfiguration() { return target.getConfiguration(); }
eventInput.setProviders((ClientConfiguration) target.getConfiguration()); InboundSseEvent event = eventInput.read(); if (event != null)
@Override public Configuration getConfiguration() { return delegate.getConfiguration(); }
@Override public Configuration getConfiguration() { return webTarget.getConfiguration(); }
public Configuration getConfiguration() { return delegate.getConfiguration(); }
@Override public Configuration getConfiguration() { return target.getConfiguration(); }
protected ClientInvocation createRequest(Object[] args) { WebTarget target = this.webTarget; for (int i = 0; i < processors.length; i++) { if (processors != null && processors[i] instanceof WebTargetProcessor) { WebTargetProcessor processor = (WebTargetProcessor)processors[i]; target = processor.build(target, args[i]); } } ClientConfiguration parentConfiguration=(ClientConfiguration) target.getConfiguration(); ClientInvocation clientInvocation = new ClientInvocation(this.webTarget.getResteasyClient(), target.getUri(), new ClientRequestHeaders(parentConfiguration), parentConfiguration); clientInvocation.setClientInvoker(this); if (accepts != null) { clientInvocation.getHeaders().accept(accepts); } for (int i = 0; i < processors.length; i++) { if (processors != null && processors[i] instanceof InvocationProcessor) { InvocationProcessor processor = (InvocationProcessor)processors[i]; processor.process(clientInvocation, args[i]); } } clientInvocation.setMethod(httpMethod); return clientInvocation; }
@Override public void open() { if (!state.compareAndSet(SseSourceState.CLOSED, SseSourceState.CONNECTING)) { throw new IllegalStateException("The SseEventSource is already in " + state.get() + " state"); } // Create the executor for scheduling the reconnect tasks final Configuration configuration = target.getConfiguration(); if (executor == null) { executor = (ScheduledExecutorService)configuration .getProperty("scheduledExecutorService"); if (executor == null) { executor = Executors.newSingleThreadScheduledExecutor(); managedExecutor = false; /* we manage lifecycle */ } } final Object lastEventId = configuration.getProperty(HttpHeaders.LAST_EVENT_ID_HEADER); connect(lastEventId != null ? lastEventId.toString() : null); }
@Override public void open() { if (!state.compareAndSet(SseSourceState.CLOSED, SseSourceState.CONNECTING)) { throw new IllegalStateException("The SseEventSource is already in " + state.get() + " state"); } // Create the executor for scheduling the reconnect tasks final Configuration configuration = target.getConfiguration(); if (executor == null) { executor = (ScheduledExecutorService)configuration .getProperty("scheduledExecutorService"); if (executor == null) { executor = Executors.newSingleThreadScheduledExecutor(); managedExecutor = false; /* we manage lifecycle */ } } final Object lastEventId = configuration.getProperty(HttpHeaders.LAST_EVENT_ID_HEADER); connect(lastEventId != null ? lastEventId.toString() : null); }
public CheckingWebTarget(RamlChecker checker, WebTarget target) { this.checker = checker; this.target = target; if (target.getConfiguration().getProperty("checked") != null) { throw new IllegalStateException("This WebTarget is already checking"); } target.property("checked", true); target.register(new CheckingClientFilter(this)); }
public CheckingWebTarget(RamlChecker checker, WebTarget target) { this.checker = checker; this.target = target; if (target.getConfiguration().getProperty("checked") != null) { throw new IllegalStateException("This WebTarget is already checking"); } target.property("checked", true); target.register(new CheckingClientFilter(this)); }
eventInput.setProviders((ClientConfiguration) target.getConfiguration()); InboundSseEvent event = eventInput.read(); if (event != null)