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
  • Method Details

    • forBaseURL

      public static UraClientConfiguration.Builder forBaseURL​(java.lang.String baseURL)
      Get new configuration UraClientConfiguration.Builder for 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 null if none specified.
    • getTimeout

      public java.time.Duration getTimeout()
      Get the response timeout, if any.
      Returns:
      Timeout duration or null if none specified.