Package org.robolectric.shadows
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)
-
Constructor Details
-
ShadowAndroidHttpClient
public ShadowAndroidHttpClient()
-
-
Method Details
-
newInstance
-
newInstance
-
getParams
-
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
-