public abstract class GHMatrixAbstractRequester extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
ignoreSet |
protected String |
serviceUrl |
| Constructor and Description |
|---|
GHMatrixAbstractRequester() |
GHMatrixAbstractRequester(String serviceUrl) |
GHMatrixAbstractRequester(String serviceUrl,
okhttp3.OkHttpClient downloader) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildURL(String path,
GHMRequest ghRequest) |
protected String |
buildURLNoHints(String path,
GHMRequest ghRequest) |
protected static String |
encode(String str) |
protected void |
fillResponseFromJson(GHMRequest request,
List<String> outArraysList,
MatrixResponse matrixResponse,
org.json.JSONObject solution,
boolean hasElevation) |
okhttp3.OkHttpClient |
getDownloader() |
protected String |
getJson(String url) |
protected String |
postJson(String url,
org.json.JSONObject data) |
List<Throwable> |
readUsableEntityError(List<String> outArraysList,
org.json.JSONObject solution) |
abstract MatrixResponse |
route(GHMRequest request) |
GHMatrixAbstractRequester |
setDownloader(okhttp3.OkHttpClient downloader) |
protected org.json.JSONObject |
toJSON(String url,
String str) |
protected final String serviceUrl
public GHMatrixAbstractRequester()
public GHMatrixAbstractRequester(String serviceUrl)
public GHMatrixAbstractRequester(String serviceUrl, okhttp3.OkHttpClient downloader)
public abstract MatrixResponse route(GHMRequest request)
public GHMatrixAbstractRequester setDownloader(okhttp3.OkHttpClient downloader)
public okhttp3.OkHttpClient getDownloader()
protected String getJson(String url) throws IOException
IOExceptionprotected String postJson(String url, org.json.JSONObject data) throws IOException
IOExceptionpublic List<Throwable> readUsableEntityError(List<String> outArraysList, org.json.JSONObject solution)
protected void fillResponseFromJson(GHMRequest request, List<String> outArraysList, MatrixResponse matrixResponse, org.json.JSONObject solution, boolean hasElevation)
protected String buildURLNoHints(String path, GHMRequest ghRequest)
protected String buildURL(String path, GHMRequest ghRequest)
Copyright © 2012–2016. All rights reserved.