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 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
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
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() |
Protected Methods
protected
void
onPrepareRequest
(HttpUriRequest request)
Called before the request is executed using the underlying HttpClient.
Overwrite in subclasses to augment the request.