Package com.targomo.client.api.request
Class TargomoRequest<R extends DefaultResponse<?,?>>
java.lang.Object
com.targomo.client.api.request.TargomoRequest<R>
- Type Parameters:
R- The Response type of the request
- Direct Known Subclasses:
MultiGraphRequest,TimeVectorRequest
Base request to the targomo API. Currently supported requests:
- MultiGraph
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final com.fasterxml.jackson.databind.ObjectMapper -
Method Summary
-
Field Details
-
MAPPER
protected static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
-
-
Method Details
-
toCurl
For debugging.- Returns:
- the request as curl String
- Throws:
TargomoClientException- when error occurred during parsing of the travel options
-
get
Executes the request- Returns:
- the request's response of type R
- Throws:
TargomoClientException- In case of error other than Gateway TimeoutResponseErrorException
-