Class TransportClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.AbstractContainerClient
-
- com.github.dannil.scbjavaclient.client.transport.TransportClient
-
public class TransportClient extends AbstractContainerClient
Client which handles transport data fetching.
- Since:
- 0.4.0
-
-
Constructor Summary
Constructors Constructor Description TransportClient()
Default constructor.TransportClient(Locale locale)
Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLEndpoint
getUrl()
Returns the URL endpoint which this client represents.TransportRegisteredVehiclesClient
registeredVehicles()
Retrieve the client for interacting with transport registered vehicles data.-
Methods inherited from class com.github.dannil.scbjavaclient.client.AbstractContainerClient
addClient, getClient, setLocale
-
Methods inherited from class com.github.dannil.scbjavaclient.client.AbstractClient
doGetRequest, doPostRequest, getCommunicationProtocol, getLocale, getLocalizationLocale, getResponseModels, getResponseModels, getRootUrl, setCommunicationProtocol, setLocalizationLocale
-
-
-
-
Constructor Detail
-
TransportClient
public TransportClient()
Default constructor. Initializes values and creates sub-clients.
-
TransportClient
public TransportClient(Locale locale)
Overloaded constructor.
- Parameters:
locale
- theLocale
for this client
-
-
Method Detail
-
registeredVehicles
public TransportRegisteredVehiclesClient registeredVehicles()
Retrieve the client for interacting with transport registered vehicles data.
- Returns:
- a client for transport registered vehicles data
-
getUrl
public URLEndpoint getUrl()
Description copied from class:AbstractClient
Returns the URL endpoint which this client represents.
- Specified by:
getUrl
in classAbstractClient
- Returns:
- the URL endpoint for this client
-
-