public class

HttpClientStack

extends Object
implements HttpStack
java.lang.Object
   ↳ com.android.volley.toolbox.HttpClientStack

Class Overview

An HttpStack that performs request over an HttpClient.

Summary

Nested Classes
class HttpClientStack.HttpPatch The HttpPatch class does not exist in the Android framework, so this has been defined here. 
Fields
protected final HttpClient mClient
Public Constructors
HttpClientStack(HttpClient client)
Public Methods
HttpResponse performRequest(Request<?> request, Map<String, String> additionalHeaders)
Performs an HTTP request with the given parameters.
Protected Methods
void onPrepareRequest(HttpUriRequest request)
Called before the request is executed using the underlying HttpClient.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.volley.toolbox.HttpStack

Fields

protected final HttpClient mClient

Public Constructors

public HttpClientStack (HttpClient client)

Public Methods

public HttpResponse performRequest (Request<?> request, Map<String, String> additionalHeaders)

Performs an HTTP request with the given parameters.

A GET request is sent if request.getPostBody() == null. A POST request is sent otherwise, and the Content-Type header is set to request.getPostBodyContentType().

Parameters
request the request to perform
additionalHeaders additional headers to be sent together with getHeaders()
Returns
  • the HTTP response
Throws
AuthFailureError
IOException

Protected Methods

protected void onPrepareRequest (HttpUriRequest request)

Called before the request is executed using the underlying HttpClient.

Overwrite in subclasses to augment the request.

Throws
IOException