Package de.stklcode.pubtrans.ura
Class UraClientConfiguration
java.lang.Object
de.stklcode.pubtrans.ura.UraClientConfiguration
- All Implemented Interfaces:
Serializable
Configuration Object for the
UraClient.- Since:
- 2.0
- Author:
- Stefan Kalscheuer
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionforBaseURL(String baseURL) Get new configurationUraClientConfiguration.Builderfor given base URL.Get the API base URL.Get the connection timeout, if any.Get the API instant endpoint path.Get the API stream endpoint path.Get the response timeout, if any.
-
Method Details
-
forBaseURL
Get new configurationUraClientConfiguration.Builderfor given base URL. This URL is the only option required.- Parameters:
baseURL- The base URL (with protocol, without trailing slash).- Returns:
- Configuration Builder instance.
-
getBaseURL
Get the API base URL.- Returns:
- Base URL.
-
getInstantPath
Get the API instant endpoint path.- Returns:
- Instant endpoint path.
-
getStreeamPath
Get the API stream endpoint path.- Returns:
- Stream endpoint path.
-
getConnectTimeout
Get the connection timeout, if any.- Returns:
- Timeout duration or
nullif none specified.
-
getTimeout
Get the response timeout, if any.- Returns:
- Timeout duration or
nullif none specified.
-