public class RouteRequest extends Object
| Constructor and Description |
|---|
RouteRequest(javax.ws.rs.client.Client client,
TravelOptions travelOptions)
Use custom client with specified travelOptions
|
RouteRequest(TravelOptions travelOptions)
Use default Client with specified travelOptions
Default client uses
ClientBuilder |
| Modifier and Type | Method and Description |
|---|---|
RouteResponse |
get()
Execute request
|
String |
toCurl()
For debugging.
|
public RouteRequest(TravelOptions travelOptions)
ClientBuildertravelOptions - Travel options parameterspublic RouteRequest(javax.ws.rs.client.Client client,
TravelOptions travelOptions)
client - Client to be usedtravelOptions - Travel options parameterspublic RouteResponse get() throws Route360ClientException
Route360ClientException - In case of error other than Gateway Timeoutpublic String toCurl() throws Route360ClientException
Route360ClientExceptionCopyright © 2017. All rights reserved.