@Override public Client getClient() { return invocation.getClient(); }
@Override public <T extends RxInvoker> T rx(Class<T> clazz) { RxInvokerProvider<T> provider = invocation.getClientConfiguration().getRxInvokerProvider(clazz); if (provider == null) { throw new IllegalStateException(Messages.MESSAGES.unableToInstantiate(clazz)); } return provider.getRxInvoker(this, invocation.getClient().asyncInvocationExecutor()); }
@Override public <T extends RxInvoker> T rx(Class<T> clazz) { RxInvokerProvider<T> provider = invocation.getClientConfiguration().getRxInvokerProvider(clazz); if (provider == null) { throw new IllegalStateException(Messages.MESSAGES.unableToInstantiate(clazz)); } return provider.getRxInvoker(this, invocation.getClient().asyncInvocationExecutor()); }
@Override public CompletionStageRxInvoker rx() { return new CompletionStageRxInvokerImpl(this, invocation.getClient().asyncInvocationExecutor()); }
public WebTarget extractEntity(ClientContext context, Object... args) { return context.getInvocation().getClient().target(getLink(link, context)); } };
private ClientInvoker createClientInvoker(ClientContext context, URI uri, Method method) { ClientInvoker clientInvoker = new ClientInvoker((ResteasyWebTarget)(context.getInvocation().getClient().target(uri)), method.getDeclaringClass(), method, new ProxyConfig(Thread.currentThread().getContextClassLoader(), null, null)); Set<String> httpMethods = IsHttpMethod.getHttpMethods(method); clientInvoker.setHttpMethod(httpMethods.iterator().next()); return clientInvoker; }
public Invocation.Builder extractEntity(ClientContext context, Object... args) { return context.getInvocation().getClient().target(getLink(link, context)).request(); } };
private RequestConfig getCurrentConfiguration(final ClientInvocation request, final HttpRequestBase httpMethod) { RequestConfig baseConfig; if (httpMethod != null && httpMethod.getConfig() != null) { baseConfig = httpMethod.getConfig(); } else { ApacheHttpClient43Engine engine = ((ApacheHttpClient43Engine) request.getClient().httpEngine()); baseConfig = ((Configurable) engine.getHttpClient()).getConfig(); if (baseConfig == null) { Configurable clientConfiguration = (Configurable) httpClient; baseConfig = clientConfiguration.getConfig(); } } return baseConfig; }
@Override public Client getClient() { return invocation.getClient(); }
@Override public Client getClient() { return invocation.getClient(); }
@Override public CompletionStageRxInvoker rx() { return new CompletionStageRxInvokerImpl(this, invocation.getClient().asyncInvocationExecutor()); }
public WebTarget extractEntity(ClientContext context, Object... args) { return context.getInvocation().getClient().target(getLink(link, context)); } };
public WebTarget extractEntity(ClientContext context, Object... args) { return context.getInvocation().getClient().target(getLink(link, context)); } };
private ClientInvoker createClientInvoker(ClientContext context, URI uri, Method method) { ClientInvoker clientInvoker = new ClientInvoker((ResteasyWebTarget)(context.getInvocation().getClient().target(uri)), method.getDeclaringClass(), method, new ProxyConfig(Thread.currentThread().getContextClassLoader(), null, null)); Set<String> httpMethods = IsHttpMethod.getHttpMethods(method); clientInvoker.setHttpMethod(httpMethods.iterator().next()); return clientInvoker; }
private ClientInvoker createClientInvoker(ClientContext context, URI uri, Method method) { ClientInvoker clientInvoker = new ClientInvoker((ResteasyWebTarget)(context.getInvocation().getClient().target(uri)), method.getDeclaringClass(), method, new ProxyConfig(Thread.currentThread().getContextClassLoader(), null, null)); Set<String> httpMethods = IsHttpMethod.getHttpMethods(method); clientInvoker.setHttpMethod(httpMethods.iterator().next()); return clientInvoker; }
public Invocation.Builder extractEntity(ClientContext context, Object... args) { return context.getInvocation().getClient().target(getLink(link, context)).request(); } };
public Invocation.Builder extractEntity(ClientContext context, Object... args) { return context.getInvocation().getClient().target(getLink(link, context)).request(); } };
private RequestConfig getCurrentConfiguration(final ClientInvocation request, final HttpRequestBase httpMethod) { RequestConfig baseConfig; if (httpMethod != null && httpMethod.getConfig() != null) { baseConfig = httpMethod.getConfig(); } else { ApacheHttpClient43Engine engine = ((ApacheHttpClient43Engine)request.getClient().httpEngine()); baseConfig = ((Configurable)engine.getHttpClient()).getConfig(); if (baseConfig == null) { Configurable clientConfiguration = (Configurable) httpClient; baseConfig = clientConfiguration.getConfig(); } } return baseConfig; } }
private RequestConfig getCurrentConfiguration(final ClientInvocation request, final HttpRequestBase httpMethod) { RequestConfig baseConfig; if (httpMethod != null && httpMethod.getConfig() != null) { baseConfig = httpMethod.getConfig(); } else { ApacheHttpClient43Engine engine = ((ApacheHttpClient43Engine)request.getClient().httpEngine()); baseConfig = ((Configurable)engine.getHttpClient()).getConfig(); if (baseConfig == null) { Configurable clientConfiguration = (Configurable) httpClient; baseConfig = clientConfiguration.getConfig(); } } return baseConfig; } }