Package com.dtolabs.rundeck.core.options
Interface RemoteJsonOptionRetriever
-
public interface RemoteJsonOptionRetriever
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RemoteJsonResponse
getRemoteJson(java.lang.String url, int timeout, int contimeout, int retry, boolean disableRemoteOptionJsonCheck)
Make a remote URL request and return the parsed JSON data and statistics for http requests in a map.
-
-
-
Method Detail
-
getRemoteJson
RemoteJsonResponse getRemoteJson(java.lang.String url, int timeout, int contimeout, int retry, boolean disableRemoteOptionJsonCheck)
Make a remote URL request and return the parsed JSON data and statistics for http requests in a map. if an error occurs, a map with a single 'error' entry will be returned. the stats data contains: url: requested url startTime: start time epoch ms httpStatusCode: http status code (int) httpStatusText: http status text finishTime: finish time epoch ms durationTime: duration time in ms contentLength: response content length bytes (long) lastModifiedDate: Last-Modified header (Date) contentSHA1: SHA1 hash of the content- Parameters:
url
- URL to requesttimeout
- request timeout in secondscontimeout
- connection timeout in secondsretry
- number of times to retry the requestdisableRemoteOptionJsonCheck
- require return type to be 'application/json'- Returns:
- RemoteJsonResponse of data, [json: parsed json or null, stats: stats data, error: error message]
-
-