Class ShadowAndroidHttpClient

java.lang.Object
org.robolectric.shadows.ShadowAndroidHttpClient

@Implements(android.net.http.AndroidHttpClient.class)
public class ShadowAndroidHttpClient
extends Object
  • Constructor Summary

    Constructors 
    Constructor Description
    ShadowAndroidHttpClient()  
  • Method Summary

    Modifier and Type Method Description
    protected org.apache.http.HttpResponse execute​(org.apache.http.client.methods.HttpUriRequest httpUriRequest)  
    protected <T> T execute​(org.apache.http.client.methods.HttpUriRequest httpUriRequest, org.apache.http.client.ResponseHandler<? extends T> responseHandler)  
    protected <T> T execute​(org.apache.http.client.methods.HttpUriRequest httpUriRequest, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext httpContext)  
    protected org.apache.http.HttpResponse execute​(org.apache.http.client.methods.HttpUriRequest httpUriRequest, org.apache.http.protocol.HttpContext httpContext)  
    protected org.apache.http.HttpResponse execute​(org.apache.http.HttpHost httpHost, org.apache.http.HttpRequest httpRequest)  
    protected <T> T execute​(org.apache.http.HttpHost httpHost, org.apache.http.HttpRequest httpRequest, org.apache.http.client.ResponseHandler<? extends T> responseHandler)  
    protected <T> T execute​(org.apache.http.HttpHost httpHost, org.apache.http.HttpRequest httpRequest, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext httpContext)  
    protected org.apache.http.HttpResponse execute​(org.apache.http.HttpHost httpHost, org.apache.http.HttpRequest httpRequest, org.apache.http.protocol.HttpContext httpContext)  
    protected ClientConnectionManager getConnectionManager()  
    protected HttpParams getParams()  
    protected static AndroidHttpClient newInstance​(String userAgent)  
    protected static AndroidHttpClient newInstance​(String userAgent, Context context)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • newInstance

      @Implementation protected static AndroidHttpClient newInstance​(String userAgent)
    • newInstance

      @Implementation protected static AndroidHttpClient newInstance​(String userAgent, Context context)
    • getParams

      @Implementation protected HttpParams getParams()
    • getConnectionManager

      @Implementation protected ClientConnectionManager getConnectionManager()
    • execute

      @Implementation protected org.apache.http.HttpResponse execute​(org.apache.http.client.methods.HttpUriRequest httpUriRequest) throws IOException, org.apache.http.client.ClientProtocolException
      Throws:
      IOException
      org.apache.http.client.ClientProtocolException
    • execute

      @Implementation protected org.apache.http.HttpResponse execute​(org.apache.http.client.methods.HttpUriRequest httpUriRequest, org.apache.http.protocol.HttpContext httpContext) throws IOException, org.apache.http.client.ClientProtocolException
      Throws:
      IOException
      org.apache.http.client.ClientProtocolException
    • execute

      @Implementation protected org.apache.http.HttpResponse execute​(org.apache.http.HttpHost httpHost, org.apache.http.HttpRequest httpRequest) throws IOException, org.apache.http.client.ClientProtocolException
      Throws:
      IOException
      org.apache.http.client.ClientProtocolException
    • execute

      @Implementation protected org.apache.http.HttpResponse execute​(org.apache.http.HttpHost httpHost, org.apache.http.HttpRequest httpRequest, org.apache.http.protocol.HttpContext httpContext) throws IOException, org.apache.http.client.ClientProtocolException
      Throws:
      IOException
      org.apache.http.client.ClientProtocolException
    • execute

      @Implementation protected <T> T execute​(org.apache.http.client.methods.HttpUriRequest httpUriRequest, org.apache.http.client.ResponseHandler<? extends T> responseHandler) throws IOException, org.apache.http.client.ClientProtocolException
      Throws:
      IOException
      org.apache.http.client.ClientProtocolException
    • execute

      @Implementation protected <T> T execute​(org.apache.http.client.methods.HttpUriRequest httpUriRequest, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext httpContext) throws IOException, org.apache.http.client.ClientProtocolException
      Throws:
      IOException
      org.apache.http.client.ClientProtocolException
    • execute

      @Implementation protected <T> T execute​(org.apache.http.HttpHost httpHost, org.apache.http.HttpRequest httpRequest, org.apache.http.client.ResponseHandler<? extends T> responseHandler) throws IOException, org.apache.http.client.ClientProtocolException
      Throws:
      IOException
      org.apache.http.client.ClientProtocolException
    • execute

      @Implementation protected <T> T execute​(org.apache.http.HttpHost httpHost, org.apache.http.HttpRequest httpRequest, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext httpContext) throws IOException, org.apache.http.client.ClientProtocolException
      Throws:
      IOException
      org.apache.http.client.ClientProtocolException