Package com.targomo.client.api.request
Class StatisticsRequest
java.lang.Object
com.targomo.client.api.request.StatisticsRequest
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionStatisticsRequest(StatisticTravelOptions travelOptions) Use default client implementation with specified options and method Default client usesClientBuilderStatisticsRequest(javax.ws.rs.client.Client client, StatisticTravelOptions travelOptions) Use a custom client implementation with specified options and methodStatisticsRequest(javax.ws.rs.client.Client client, StatisticTravelOptions travelOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) Use a custom client implementation with specified options and method -
Method Summary
Modifier and TypeMethodDescriptionget(StatisticMethod method) <T> Tget(String path, StatisticsRequest.ResponseValidator<T> responseValidator)
-
Constructor Details
-
StatisticsRequest
Use default client implementation with specified options and method Default client usesClientBuilder- Parameters:
travelOptions- Options to be used
-
StatisticsRequest
Use a custom client implementation with specified options and method- Parameters:
client- Client implementation to be usedtravelOptions- Options to be used
-
StatisticsRequest
public StatisticsRequest(javax.ws.rs.client.Client client, StatisticTravelOptions travelOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) Use a custom client implementation with specified options and method- Parameters:
client- Client implementation to be usedtravelOptions- Options to be usedheaders- List of custom http headers to be used
-
-
Method Details
-
get
- Throws:
TargomoClientException
-
getValuesGeometry
- Throws:
TargomoClientException
-
get
public <T> T get(String path, StatisticsRequest.ResponseValidator<T> responseValidator) throws TargomoClientException - Parameters:
path- the path for the request to be executed- Returns:
- Response from the statistics server
- Throws:
TargomoClientException- In case of other errors
-