public class SslHttpStack extends Object implements com.nativex.network.volley.toolbox.HttpStack
| Modifier and Type | Class and Description |
|---|---|
static class |
SslHttpStack.HttpPatch
The HttpPatch class does not exist in the Android framework, so this has been defined here.
|
| Modifier and Type | Field and Description |
|---|---|
private static String |
HEADER_CONTENT_TYPE |
| Constructor and Description |
|---|
SslHttpStack() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
addHeaders(HttpUriRequest httpRequest,
Map<String,String> headers) |
(package private) static HttpUriRequest |
createHttpRequest(com.nativex.network.volley.Request<?> request,
Map<String,String> additionalHeaders)
Creates the appropriate subclass of HttpUriRequest for passed in request.
|
private static List<NameValuePair> |
getPostParameterPairs(Map<String,String> postParams) |
protected void |
onPrepareRequest(HttpUriRequest request)
Called before the request is executed using the underlying HttpClient.
|
HttpResponse |
performRequest(com.nativex.network.volley.Request<?> request,
Map<String,String> additionalHeaders)
Performs an HTTP request with the given parameters.
|
private static void |
setEntityIfNonEmptyBody(HttpEntityEnclosingRequestBase httpRequest,
com.nativex.network.volley.Request<?> request) |
private static final String HEADER_CONTENT_TYPE
private static void addHeaders(HttpUriRequest httpRequest, Map<String,String> headers)
private static List<NameValuePair> getPostParameterPairs(Map<String,String> postParams)
public HttpResponse performRequest(com.nativex.network.volley.Request<?> request, Map<String,String> additionalHeaders) throws IOException, com.nativex.network.volley.AuthFailureError
com.nativex.network.volley.toolbox.HttpStackA GET request is sent if request.getPostBody() == null. A POST request is sent otherwise, and the Content-Type header is set to request.getPostBodyContentType().
performRequest in interface com.nativex.network.volley.toolbox.HttpStackrequest - the request to performadditionalHeaders - additional headers to be sent together with
Request.getHeaders()IOExceptioncom.nativex.network.volley.AuthFailureErrorstatic HttpUriRequest createHttpRequest(com.nativex.network.volley.Request<?> request, Map<String,String> additionalHeaders) throws com.nativex.network.volley.AuthFailureError
com.nativex.network.volley.AuthFailureErrorprivate static void setEntityIfNonEmptyBody(HttpEntityEnclosingRequestBase httpRequest, com.nativex.network.volley.Request<?> request) throws com.nativex.network.volley.AuthFailureError
com.nativex.network.volley.AuthFailureErrorprotected void onPrepareRequest(HttpUriRequest request) throws IOException
Overwrite in subclasses to augment the request.
IOException