public class TimeRequest extends Object
HttpMethod POST.| Constructor and Description |
|---|
TimeRequest(javax.ws.rs.client.Client client,
TravelOptions travelOptions)
Use a custom client implementation with specified options and method
|
TimeRequest(TravelOptions travelOptions)
Use default client implementation with specified options and method
Default client uses
ClientBuilder. |
| Modifier and Type | Method and Description |
|---|---|
TimeResponse |
get()
Execute request
|
String |
toCurl()
For debugging.
|
public TimeRequest(TravelOptions travelOptions)
ClientBuilder.travelOptions - Options to be usedpublic TimeRequest(javax.ws.rs.client.Client client,
TravelOptions travelOptions)
client - Client implementation to be usedtravelOptions - Options to be usedpublic TimeResponse get() throws Route360ClientException, javax.ws.rs.ProcessingException
Route360ClientException - In case of error other than Gateway Timeoutjavax.ws.rs.ProcessingExceptionpublic String toCurl() throws Route360ClientException
Route360ClientException - when error occurred during parsing of the travel optionsCopyright © 2018. All rights reserved.