Class AuthenticatedAPIHandler.Conf<T extends AuthenticatedAPIHandler.Conf<T>>

  • Direct Known Subclasses:
    AppAPI.Conf, AuthAPI.Conf, GraphAPI.Conf
    Enclosing class:
    AuthenticatedAPIHandler

    public abstract static class AuthenticatedAPIHandler.Conf<T extends AuthenticatedAPIHandler.Conf<T>>
    extends java.lang.Object
    Configuration interface for all the parameters of an AuthenticatedAPIHandler. Builder need to implement this.
    • Constructor Detail

      • Conf

        public Conf()
    • Method Detail

      • getApiName

        public java.lang.String getApiName()
      • setApiName

        public T setApiName​(java.lang.String apiName)
        Parameters:
        apiName - Set the name of the api. This name will be used to determine the API endpoint entry via /api/version.
        Returns:
        self()
      • getApiPath

        public java.lang.String getApiPath()
      • setApiPath

        public T setApiPath​(java.lang.String apiPath)
        Parameters:
        apiPath - Set a custom API path directly, omitting automatic endpoint detection via apiName.
        Returns:
        self()
      • getHttpRequestTimeout

        public java.lang.Long getHttpRequestTimeout()
      • setHttpRequestTimeout

        public T setHttpRequestTimeout​(java.lang.Long httpRequestTimeout)
        Parameters:
        httpRequestTimeout - Request timeout in ms.
        Returns:
        self()
      • getMaxRetries

        public int getMaxRetries()
      • setMaxRetries

        public T setMaxRetries​(int maxRetries)
        Parameters:
        maxRetries - Max amount of retries when http errors are received.
        Returns:
        self()
      • setTokenApiHandler

        public T setTokenApiHandler​(TokenAPIHandler tokenAPIHandler)
        Parameters:
        tokenAPIHandler - The tokenAPIHandler for this API.
        Returns:
        self()
      • self

        protected abstract T self()