public abstract class GHMatrixAbstractRequester extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
serviceUrl |
| Constructor and Description |
|---|
GHMatrixAbstractRequester() |
GHMatrixAbstractRequester(String serviceUrl) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fillResponseFromJson(GHMRequest request,
List<String> outArraysList,
MatrixResponse matrixResponse,
org.json.JSONObject solution,
boolean hasElevation) |
com.squareup.okhttp.OkHttpClient |
getDownloader() |
protected String |
getJson(String url) |
protected String |
postJson(String url,
org.json.JSONObject data) |
abstract MatrixResponse |
route(GHMRequest request,
String key) |
void |
setDownloader(com.squareup.okhttp.OkHttpClient downloader) |
protected org.json.JSONObject |
toJSON(String url,
String str) |
protected final String serviceUrl
public GHMatrixAbstractRequester()
public GHMatrixAbstractRequester(String serviceUrl)
public abstract MatrixResponse route(GHMRequest request, String key)
public void setDownloader(com.squareup.okhttp.OkHttpClient downloader)
public com.squareup.okhttp.OkHttpClient getDownloader()
protected String getJson(String url) throws IOException
IOExceptionprotected String postJson(String url, org.json.JSONObject data) throws IOException
IOExceptionprotected void fillResponseFromJson(GHMRequest request, List<String> outArraysList, MatrixResponse matrixResponse, org.json.JSONObject solution, boolean hasElevation)
Copyright © 2012–2016. All rights reserved.