Package de.stklcode.pubtrans.ura
Class UraClientConfiguration
java.lang.Object
de.stklcode.pubtrans.ura.UraClientConfiguration
- All Implemented Interfaces:
java.io.Serializable
public class UraClientConfiguration
extends java.lang.Object
implements java.io.Serializable
Configurstion Object for the
UraClient.- Since:
- 2.0
- Author:
- Stefan Kalscheuer
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUraClientConfiguration.BuilderBuilder forUraClientConfigurationobjects. -
Method Summary
Modifier and Type Method Description static UraClientConfiguration.BuilderforBaseURL(java.lang.String baseURL)Get new configurationUraClientConfiguration.Builderfor given base URL.java.lang.StringgetBaseURL()Get the API base URL.java.time.DurationgetConnectTimeout()Get the connection timeout, if any.java.lang.StringgetInstantPath()Get the API instant endpoint path.java.lang.StringgetStreeamPath()Get the API stream endpoint path.java.time.DurationgetTimeout()Get the response timeout, if any.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public java.lang.String getBaseURL()Get the API base URL.- Returns:
- Base URL.
-
getInstantPath
public java.lang.String getInstantPath()Get the API instant endpoint path.- Returns:
- Instant endpoint path.
-
getStreeamPath
public java.lang.String getStreeamPath()Get the API stream endpoint path.- Returns:
- Stream endpoint path.
-
getConnectTimeout
public java.time.Duration getConnectTimeout()Get the connection timeout, if any.- Returns:
- Timeout duration or
nullif none specified.
-
getTimeout
public java.time.Duration getTimeout()Get the response timeout, if any.- Returns:
- Timeout duration or
nullif none specified.
-