List of usage examples for org.apache.http.client HttpClient interface-usage
From source file com.intuit.elves.network.mock.MockHttpClient.java
public class MockHttpClient implements HttpClient { public int mStatusCode = HttpStatus.SC_OK; public IOException mException; public Header mHeader; public void setErrorCode(int statusCode) {
From source file org.apache.camel.component.social.SocialHttpClient.java
public class SocialHttpClient implements HttpClient { private DefaultHttpClient client; private OAuthConsumer consumer; public SocialHttpClient(String token, String secret, String consumerToken, String consumerSecret) {
From source file org.mobicents.client.slee.resource.http.HttpClientWrapper.java
/**
* A wrapper for a {@link HttpClient}, which forbiddens access to the connection
* manager.
*
* @author martins
*
From source file com.twitter.hbc.httpclient.RestartableHttpClient.java
/** * There's currently a bug in DecompressingHttpClient that does not allow it to properly abort requests. * This class is a hacky workaround to make things work. */ public class RestartableHttpClient implements HttpClient {
From source file org.sonatype.nexus.repository.httpclient.BlockingHttpClient.java
/** * Wraps an {@link HttpClient} with manual and automatic blocking functionality. * * @since 3.0 */ public class BlockingHttpClient extends FilteredHttpClientSupport implements HttpClient, Closeable {
From source file fr.ippon.wip.http.hc.HttpClientDecorator.java
/**
* This class uses the decorator pattern to inject preProcessor (HttpRequestInterceptor)
* and postProcessor (HttpResponseInterceptor) to the backend HttpClient instance passed
* to the constructor
*
* @author Franois Prot
From source file org.sonatype.nexus.repository.httpclient.FilteredHttpClientSupport.java
/** * Support for wrapping {@link HttpClient}s. * * @since 3.1 */ public abstract class FilteredHttpClientSupport extends ComponentSupport implements HttpClient, Closeable {
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 {
From source file com.sangupta.jerry.http.HttpRateLimitingClient.java
/**
* An implementation of the {@link HttpClient} that supports rate limiting
* checks over given hosts/routes. The implementation needs an actual {@link HttpClient}
* implementation which does the magic of all executing all calls.
*
* @author sangupta
From source file io.soabase.client.apache.WrappedHttpClient.java
@SuppressWarnings("deprecation") public class WrappedHttpClient implements HttpClient { private final HttpClient implementation; private final SoaDiscovery discovery; private final RetryComponents retryComponents;