Package com.targomo.client.api.request
Class MultiGraphRequest<R extends MultiGraphResponse<?>>
java.lang.Object
com.targomo.client.api.request.TargomoRequest<R>
com.targomo.client.api.request.MultiGraphRequest<R>
- Type Parameters:
R- Response Type of the MultigraphRequest, e.g.MultiGraphResponse.MultiGraphJsonResponse,MultiGraphResponse.MultiGraphGeoJsonResponse
Class to create and execute a multigraph request.
-
Field Summary
Fields inherited from class com.targomo.client.api.request.TargomoRequest
MAPPER -
Constructor Summary
ConstructorsConstructorDescriptionMultiGraphRequest(javax.ws.rs.client.Client client, TravelOptions travelOptions, Class<R> responseClass) MultiGraphRequest(javax.ws.rs.client.Client client, TravelOptions travelOptions, Class<R> responseClass, javax.ws.rs.core.MultivaluedMap<String, Object> headers) Use custom client with specified travelOptions -
Method Summary
Modifier and TypeMethodDescriptionexecuteRequestGeoJson(TravelOptions travelOptions) executeRequestGeoJson(TravelOptions travelOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) Not recommended since a heavy client object is constructed and destroyed with every call.executeRequestGeoJson(javax.ws.rs.client.Client client, TravelOptions travelOptions) executeRequestGeoJson(javax.ws.rs.client.Client client, TravelOptions travelOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) executeRequestJson(TravelOptions travelOptions) executeRequestJson(TravelOptions travelOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) Not recommended since a heavy client object is constructed and destroyed with every call.executeRequestJson(javax.ws.rs.client.Client client, TravelOptions travelOptions) executeRequestJson(javax.ws.rs.client.Client client, TravelOptions travelOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) executeRequestTileHash(TravelOptions travelOptions) executeRequestTileHash(TravelOptions travelOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) executeRequestTileHash(javax.ws.rs.client.Client client, TravelOptions travelOptions) executeRequestTileHash(javax.ws.rs.client.Client client, TravelOptions travelOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) Methods inherited from class com.targomo.client.api.request.TargomoRequest
get, toCurl
-
Constructor Details
-
MultiGraphRequest
public MultiGraphRequest(javax.ws.rs.client.Client client, TravelOptions travelOptions, Class<R> responseClass, javax.ws.rs.core.MultivaluedMap<String, Object> headers) Use custom client with specified travelOptions- Parameters:
client- Client to be usedtravelOptions- Travel options parameters
-
MultiGraphRequest
public MultiGraphRequest(javax.ws.rs.client.Client client, TravelOptions travelOptions, Class<R> responseClass)
-
-
Method Details
-
executeRequestJson
public static MultiGraphResponse.MultiGraphJsonResponse executeRequestJson(TravelOptions travelOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) throws TargomoClientException, ResponseErrorExceptionNot recommended since a heavy client object is constructed and destroyed with every call. Also a GZIPEncoder needs to be registered usually to the client to receive results.- Parameters:
travelOptions- Travel options parameters of this request- Returns:
- result of the request
- Throws:
TargomoClientException- id error occurred during requestResponseErrorException
-
executeRequestJson
public static MultiGraphResponse.MultiGraphJsonResponse executeRequestJson(TravelOptions travelOptions) throws TargomoClientException, ResponseErrorException -
executeRequestTileHash
public static MultiGraphResponse.MultiGraphTileHashResponse executeRequestTileHash(TravelOptions travelOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) throws TargomoClientException, ResponseErrorException -
executeRequestTileHash
public static MultiGraphResponse.MultiGraphTileHashResponse executeRequestTileHash(TravelOptions travelOptions) throws TargomoClientException, ResponseErrorException -
executeRequestGeoJson
public static MultiGraphResponse.MultiGraphGeoJsonResponse executeRequestGeoJson(TravelOptions travelOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) throws TargomoClientException, ResponseErrorExceptionNot recommended since a heavy client object is constructed and destroyed with every call. Also a GZIPEncoder needs to be registered usually to the client to receive results.- Parameters:
travelOptions- Travel options parameters of this request- Returns:
- result of the request
- Throws:
TargomoClientException- id error occurred during requestResponseErrorException
-
executeRequestGeoJson
public static MultiGraphResponse.MultiGraphGeoJsonResponse executeRequestGeoJson(TravelOptions travelOptions) throws TargomoClientException, ResponseErrorException -
executeRequestJson
public static MultiGraphResponse.MultiGraphJsonResponse executeRequestJson(javax.ws.rs.client.Client client, TravelOptions travelOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) throws TargomoClientException, ResponseErrorException -
executeRequestJson
public static MultiGraphResponse.MultiGraphJsonResponse executeRequestJson(javax.ws.rs.client.Client client, TravelOptions travelOptions) throws TargomoClientException, ResponseErrorException -
executeRequestTileHash
public static MultiGraphResponse.MultiGraphTileHashResponse executeRequestTileHash(javax.ws.rs.client.Client client, TravelOptions travelOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) throws TargomoClientException, ResponseErrorException -
executeRequestTileHash
public static MultiGraphResponse.MultiGraphTileHashResponse executeRequestTileHash(javax.ws.rs.client.Client client, TravelOptions travelOptions) throws TargomoClientException, ResponseErrorException -
executeRequestGeoJson
public static MultiGraphResponse.MultiGraphGeoJsonResponse executeRequestGeoJson(javax.ws.rs.client.Client client, TravelOptions travelOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) throws TargomoClientException, ResponseErrorException -
executeRequestGeoJson
public static MultiGraphResponse.MultiGraphGeoJsonResponse executeRequestGeoJson(javax.ws.rs.client.Client client, TravelOptions travelOptions) throws TargomoClientException, ResponseErrorException
-