public interface RESTDataProvider
| Modifier and Type | Field and Description |
|---|---|
static int |
SERVICE_UNAVAILABLE
HTTP Response code returned when the service is unavailable - it is an indication of a probably temporary error or load problem on the server
|
static int |
TOO_MANY_REQUESTS
HTTP Response code returned when the client has made too many request - it is an indication of rate limiting on the
server-side.
|
static int |
UNPROCESSABLE_ENTITY
HTTP Response code returned in some cases, usually when a request is nonsensical, e.g.
|
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
getJSONResponse(javax.ws.rs.client.WebTarget target)
Invoke a GET call on the web target and return the result as a parsed JSON object.
|
TabularResult |
getTabularResponse(javax.ws.rs.client.WebTarget target)
Invoke a GET call on the web target and return the result as a TabularResult (parsed CSV).
|
static final int UNPROCESSABLE_ENTITY
static final int TOO_MANY_REQUESTS
static final int SERVICE_UNAVAILABLE
org.json.JSONObject getJSONResponse(javax.ws.rs.client.WebTarget target)
target - the WebTarget describing the call to make, not nullTabularResult getTabularResponse(javax.ws.rs.client.WebTarget target)
target - the WebTarget describing the call to make, not nullCopyright 2014-Present by Jim Moores
${javadoc.footer.license}