@Test public void testDelete() throws Exception { RestClient client = (RestClient) ClientFactory.getNamedClient("google"); HttpRequest request = HttpRequest.newBuilder().uri(server.getServerURI()).verb(HttpRequest.Verb.DELETE).build(); HttpResponse response = client.execute(request); assertStatusIsOk(response.getStatus()); request = HttpRequest.newBuilder().uri(server.getServerURI()).verb(HttpRequest.Verb.DELETE).entity("").build(); response = client.execute(request); assertStatusIsOk(response.getStatus()); }
public HttpResponse execute(HttpRequest task) throws Exception { return execute(task, null); }
RestClient extends AbstractLoadBalancerAwareClient<HttpRequest, HttpResponse> { public HttpResponse execute(HttpRequest task) throws Exception { return execute(task, null); } }
RestClient extends AbstractLoadBalancerAwareClient<HttpRequest, HttpResponse> { public HttpResponse execute(HttpRequest task) throws Exception { return execute(task, null); } RestClient();  RestClient(ILoadBalancer lb);  RestClient(ILoadBalancer lb, IClientConfig ncc);  RestClient(IClientConfig ncc);  RestClient(ILoadBalancer lb, Client jerseyClient); }
RestClient extends AbstractLoadBalancerAwareClient<HttpRequest, HttpResponse> { public HttpResponse execute(HttpRequest task) throws Exception { return execute(task, null); } RestClient();  RestClient(ILoadBalancer lb);  RestClient(ILoadBalancer lb, IClientConfig ncc);  RestClient(IClientConfig ncc);  RestClient(ILoadBalancer lb, Client jerseyClient); @Override void initWithNiwsConfig(IClientConfig clientConfig); void resetSSLSocketFactory(AbstractSslContextFactory abstractContextFactory); KeyStore getKeyStore(); static URL getResource(String resourceName); Client getJerseyClient(); void setJerseyClient(Client c); HttpResponse execute(HttpRequest task); @Override HttpResponse execute(HttpRequest task, IClientConfig requestConfig); @Override RequestSpecificRetryHandler getRequestSpecificRetryHandler(
            HttpRequest request, IClientConfig requestConfig); void shutdown(); }
RestClient extends AbstractLoadBalancerAwareClient<HttpRequest, HttpResponse> { public HttpResponse execute(HttpRequest task) throws Exception { return execute(task, null); } RestClient();  RestClient(ILoadBalancer lb);  RestClient(ILoadBalancer lb, IClientConfig ncc);  RestClient(IClientConfig ncc);  RestClient(ILoadBalancer lb, Client jerseyClient); @Override void initWithNiwsConfig(IClientConfig clientConfig); void resetSSLSocketFactory(AbstractSslContextFactory abstractContextFactory); KeyStore getKeyStore(); static URL getResource(String resourceName); Client getJerseyClient(); void setJerseyClient(Client c); HttpResponse execute(HttpRequest task); @Override HttpResponse execute(HttpRequest task, IClientConfig requestConfig); @Override RequestSpecificRetryHandler getRequestSpecificRetryHandler(
            HttpRequest request, IClientConfig requestConfig); void shutdown();  }