public class StatisticsRequest extends Object
| Constructor and Description |
|---|
StatisticsRequest(javax.ws.rs.client.Client client,
TravelOptions travelOptions)
Use a custom client implementation with specified options and method
|
StatisticsRequest(TravelOptions travelOptions)
Use default client implementation with specified options and method
Default client uses
ClientBuilder |
| Modifier and Type | Method and Description |
|---|---|
StatisticsResponse |
get(StatisticMethod method) |
static void |
main(String[] args) |
public StatisticsRequest(TravelOptions travelOptions)
ClientBuildertravelOptions - Options to be usedpublic StatisticsRequest(javax.ws.rs.client.Client client,
TravelOptions travelOptions)
client - Client implementation to be usedtravelOptions - Options to be usedpublic StatisticsResponse get(StatisticMethod method) throws Route360ClientException, org.json.JSONException
org.json.JSONException - In case the returned response is not parsableRoute360ClientException - In case of other errorspublic static void main(String[] args) throws Route360ClientException, org.json.JSONException
Route360ClientExceptionorg.json.JSONExceptionCopyright © 2017. All rights reserved.