@Test public void testGet () throws IOException, InterruptedException { InterruptibleHttpClient ihc = new InterruptibleHttpClient (); DummyChannel output = new DummyChannel (); String url = "http: HttpResponse response = ihc.interruptibleGet (url, output); DummyHttpServer.stop (); long contentlength = response.getEntity ().getContentLength (); Assert.assertEquals (contentlength, output.getRead ()); }
public <IWC extends InterruptibleChannel & WritableByteChannel> HttpResponse interruptibleGet(String url, final IWC output) throws IOException, InterruptedException { return interruptibleRequest(new HttpGet(url), output); }
InterruptibleHttpClient { public <IWC extends InterruptibleChannel & WritableByteChannel> HttpResponse interruptibleGet(String url, final IWC output) throws IOException, InterruptedException { return interruptibleRequest(new HttpGet(url), output); } }
InterruptibleHttpClient { public <IWC extends InterruptibleChannel & WritableByteChannel> HttpResponse interruptibleGet(String url, final IWC output) throws IOException, InterruptedException { return interruptibleRequest(new HttpGet(url), output); } InterruptibleHttpClient();  InterruptibleHttpClient(HttpAsyncClientProducer clientProducer); }
InterruptibleHttpClient { public <IWC extends InterruptibleChannel & WritableByteChannel> HttpResponse interruptibleGet(String url, final IWC output) throws IOException, InterruptedException { return interruptibleRequest(new HttpGet(url), output); } InterruptibleHttpClient();  InterruptibleHttpClient(HttpAsyncClientProducer clientProducer); HttpResponse interruptibleRequest(HttpUriRequest request, final IWC output); HttpResponse interruptibleGet(String url, final IWC output); HttpResponse interruptibleDelete(String url, final IWC output); }
InterruptibleHttpClient { public <IWC extends InterruptibleChannel & WritableByteChannel> HttpResponse interruptibleGet(String url, final IWC output) throws IOException, InterruptedException { return interruptibleRequest(new HttpGet(url), output); } InterruptibleHttpClient();  InterruptibleHttpClient(HttpAsyncClientProducer clientProducer); HttpResponse interruptibleRequest(HttpUriRequest request, final IWC output); HttpResponse interruptibleGet(String url, final IWC output); HttpResponse interruptibleDelete(String url, final IWC output);  }