public abstract class MeridianRequest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MeridianRequest.APIBuilder |
static class |
MeridianRequest.BodyContentType |
static interface |
MeridianRequest.ErrorListener |
static interface |
MeridianRequest.Listener<T> |
static class |
MeridianRequest.LocationsAPIBuilder |
static interface |
MeridianRequest.PageListener<T> |
Constructor and Description |
---|
MeridianRequest(Uri uri) |
MeridianRequest(Uri uri,
JSONObject params) |
MeridianRequest(Uri uri,
JSONObject params,
MeridianRequest.BodyContentType bodyContentType) |
MeridianRequest(Uri uri,
Map<String,String> params) |
MeridianRequest(Uri uri,
Map<String,String> params,
MeridianRequest.BodyContentType bodyContentType) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptsAuthenticationHeader() |
protected static Map<String,String> |
appendAPIVersionHeaders(Map<String,String> headers,
MeridianRequest.BodyContentType bodyContentType) |
protected static Map<String,String> |
appendGZIPHeaders(Map<String,String> headers) |
protected static Map<String,String> |
appendLanguageHeaders(Map<String,String> headers) |
protected void |
buildRequest() |
protected abstract com.android.volley.Request |
buildVolleyRequest() |
void |
cancel() |
protected static byte[] |
encodeParameters(Map<String,String> params,
String paramsEncoding) |
protected MeridianRequest.BodyContentType |
getBodyContentType() |
protected JSONObject |
getJSONBody() |
protected int |
getMethod() |
protected int |
getPageSize() |
protected abstract String |
getRequestTag() |
protected Map<String,String> |
getStringMapBody() |
protected Uri |
getUri() |
protected boolean |
isPatch() |
protected String |
nextPage() |
protected boolean |
overrideCacheHeaders() |
protected com.android.volley.Cache.Entry |
parseCacheHeaders(com.android.volley.NetworkResponse response) |
MeridianRequest |
sendRequest() |
protected void |
setNextPage(String nextPage) |
void |
setRetryPolicy(com.android.volley.RetryPolicy retryPolicy) |
protected void |
setUri(Uri uri) |
protected boolean |
supportsPaging() |
protected static com.android.volley.NetworkResponse |
unGZIP(com.android.volley.NetworkResponse response) |
public MeridianRequest(Uri uri)
public MeridianRequest(Uri uri, Map<String,String> params, MeridianRequest.BodyContentType bodyContentType)
public MeridianRequest(Uri uri, JSONObject params)
public MeridianRequest(Uri uri, JSONObject params, MeridianRequest.BodyContentType bodyContentType)
protected void buildRequest()
protected boolean supportsPaging()
protected boolean isPatch()
protected boolean acceptsAuthenticationHeader()
protected String nextPage()
protected void setNextPage(String nextPage)
protected int getPageSize()
protected int getMethod()
protected Uri getUri()
protected void setUri(Uri uri)
protected MeridianRequest.BodyContentType getBodyContentType()
protected JSONObject getJSONBody()
protected abstract String getRequestTag()
public void setRetryPolicy(com.android.volley.RetryPolicy retryPolicy)
protected abstract com.android.volley.Request buildVolleyRequest()
public void cancel()
public MeridianRequest sendRequest()
protected static com.android.volley.NetworkResponse unGZIP(com.android.volley.NetworkResponse response)
protected com.android.volley.Cache.Entry parseCacheHeaders(com.android.volley.NetworkResponse response)
protected boolean overrideCacheHeaders()
protected static Map<String,String> appendLanguageHeaders(Map<String,String> headers)
protected static Map<String,String> appendAPIVersionHeaders(Map<String,String> headers, MeridianRequest.BodyContentType bodyContentType)