Package com.targomo.client.api.request
Class ScoreRequest
java.lang.Object
com.targomo.client.api.request.ScoreRequest
-
Constructor Summary
ConstructorsConstructorDescriptionScoreRequest(String serviceUrl, String key, Map<String, CriterionDefinition> criteria, List<Location> locations) ScoreRequest(String serviceUrl, String key, Map<String, CriterionDefinition> criteria, List<Location> locations, boolean showDetails, boolean forceRecalculate, boolean cacheResult) ScoreRequest(String serviceUrl, String key, Map<String, CriterionDefinition> criteria, List<Location> locations, boolean showDetails, boolean forceRecalculate, boolean cacheResult, javax.ws.rs.core.MultivaluedMap<String, Object> headers) ScoreRequest(String serviceUrl, String key, Map<String, CriterionDefinition> criteria, List<Location> locations, List<Location> competitors) ScoreRequest(String serviceUrl, String key, Map<String, CriterionDefinition> criteria, List<Location> locations, List<Location> competitors, boolean showDetails, boolean forceRecalculate, boolean cacheResult) ScoreRequest(String serviceUrl, String key, Map<String, CriterionDefinition> criteria, List<Location> locations, javax.ws.rs.core.MultivaluedMap<String, Object> headers) ScoreRequest(javax.ws.rs.client.Client client, Map<String, CriterionDefinition> criteria, List<Location> locations, List<Location> competitors, String serviceUrl, String key, boolean showDetails, boolean forceRecalculate, boolean cacheResult) -
Method Summary
Modifier and TypeMethodDescriptionget()static ScoreResponsevalidateResponse(javax.ws.rs.core.Response response) Validate HTTP response and return a PolygonResponse
-
Constructor Details
-
ScoreRequest
-
ScoreRequest
-
ScoreRequest
-
ScoreRequest
-
ScoreRequest
-
ScoreRequest
-
ScoreRequest
-
-
Method Details
-
get
- Throws:
TargomoClientException
-
validateResponse
public static ScoreResponse validateResponse(javax.ws.rs.core.Response response) throws TargomoClientException Validate HTTP response and return a PolygonResponse- Parameters:
response- HTTP response- Returns:
- ScoreResponse
- Throws:
TargomoClientException- In case of errors other than GatewayTimeout
-