List of usage examples for org.apache.http.impl.client CloseableHttpClient subclass-usage
From source file com.joyent.manta.http.FakeCloseableHttpClient.java
/** * Class that allows you to fake a HTTP client by preemptively inserting a * response object. */ public class FakeCloseableHttpClient extends CloseableHttpClient { final CloseableHttpResponse response;
From source file org.carewebframework.vista.api.mbroker.BrokerClient.java
/** * Allows http requests to be handled by the broker. */ @SuppressWarnings("deprecation") public class BrokerClient extends CloseableHttpClient {
From source file org.carewebframework.fhir.client.HttpClientProxy.java
/** * Http client proxy to allow registration of custom clients based on url patterns. */ @SuppressWarnings("deprecation") public class HttpClientProxy extends CloseableHttpClient {
From source file org.wso2.carbon.apimgt.handlers.mock.MockClient.java
/** * Mock implementation for CloseableHttpClient to be used in test cases. */ public class MockClient extends CloseableHttpClient { private List<CloseableHttpResponse> responses = new ArrayList<>(); private int responseCount = 0;
From source file org.llorllale.youtrack.api.mock.http.MockThrowingHttpClient.java
/**
* Mock impl. of {@link HttpClient} that always throws an {@link IOException}.
*
* @author George Aristy (george.aristy@gmail.com)
* @since 1.0.0
*/
From source file org.callimachusproject.client.AutoClosingHttpClient.java
/**
* This class allows an HttpClient to be shared among managers that each think
* it is just for them. By ignoring calls to {@link CloseableHttpClient#close()}
* and waiting for object finalisation this allows this object to shared.
*
* @author James Leigh
From source file org.commonjava.util.jhttpc.INTERNAL.conn.TrackedHttpClient.java
/** * Created by jdcasey on 10/28/15. */ public class TrackedHttpClient extends CloseableHttpClient { private final CloseableHttpClient delegate;
From source file org.llorllale.youtrack.api.mock.http.MockHttpClient.java
/**
* Mock implementation of {@link HttpClient} suitable for unit tests.
*
* @author George Aristy (george.aristy@gmail.com)
* @since 0.4.0
*/
From source file org.artifactory.repo.http.CloseableHttpClientDecorator.java
/**
* Provides decoration capabilities for HttpClient,
* where {@link CloseableObserver} can register to
* onClose() event
*
* @author Michael Pasternak
From source file org.callimachusproject.client.HttpUriClient.java
public abstract class HttpUriClient extends CloseableHttpClient implements HttpClient { private final Logger logger = LoggerFactory.getLogger(HttpUriClient.class); protected abstract HttpClient getDelegate() throws IOException; public HttpUriEntity getEntity(String url, String accept) throws IOException, ResponseException {