Class ClientConfiguration


  • public final class ClientConfiguration
    extends Object
    Immutable client configuration object.

    Instances can be created with a constructor or by using the builder pattern (builder()).

    Validates on construction rather than in builder setters.

    • Field Detail

      • KEY_PREFIX

        public static final String KEY_PREFIX
        The prefix for configuration keys that come from a global namespace, such as system properties or environment variables. With this prefix the property "foo" is specified as "edg.client.foo".
        See Also:
        Constant Field Values
    • Method Detail

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • getAuthenticationMethod

        public final ClientAuthenticationMethod getAuthenticationMethod()
        Get the authentication method the client should use.
      • getCredentials

        public final ClientCredentials getCredentials()
        Get the credentials the client should use.
      • getServerBaseUrl

        public final String getServerBaseUrl()
        Get the server base URL. It is guaranteed to be properly formed and end with a / e.g., http://localhost:8080/.