Class HttpConfig

    • Constructor Detail

      • HttpConfig

        public HttpConfig()
      • HttpConfig

        public HttpConfig​(java.net.URI url,
                          @Nullable
                          java.lang.String endpoint,
                          @Nullable
                          java.lang.Double timeout,
                          @Nullable
                          java.lang.Integer timeoutInMillis,
                          @Nullable
                          TokenProvider auth,
                          @Nullable
                          java.util.Map<java.lang.String,​java.lang.String> urlParams,
                          @Nullable
                          java.util.Map<java.lang.String,​java.lang.String> headers,
                          @Nullable
                          HttpConfig.Compression compression)
    • Method Detail

      • mergeWithNonNull

        public HttpConfig mergeWithNonNull​(HttpConfig other)
        Description copied from interface: MergeConfig
        Method to create new config class based on current instance and non-null argument value. In most cases, implementation needs to create a new instance of T, while merging all the properties.
        Specified by:
        mergeWithNonNull in interface MergeConfig<HttpConfig>
        Parameters:
        other - overwrite value
        Returns:
        merged config entry
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getUrl

        public java.net.URI getUrl()
      • setUrl

        public void setUrl​(java.net.URI url)
      • getEndpoint

        @Nullable
        public java.lang.String getEndpoint()
      • setEndpoint

        public void setEndpoint​(@Nullable
                                java.lang.String endpoint)
      • getTimeout

        @Nullable
        public java.lang.Double getTimeout()
      • setTimeout

        public void setTimeout​(@Nullable
                               java.lang.Double timeout)
      • getTimeoutInMillis

        @Nullable
        public java.lang.Integer getTimeoutInMillis()
      • setTimeoutInMillis

        public void setTimeoutInMillis​(@Nullable
                                       java.lang.Integer timeoutInMillis)
      • setAuth

        public void setAuth​(@Nullable
                            TokenProvider auth)
      • getUrlParams

        @Nullable
        public java.util.Map<java.lang.String,​java.lang.String> getUrlParams()
      • setUrlParams

        public void setUrlParams​(@Nullable
                                 java.util.Map<java.lang.String,​java.lang.String> urlParams)
      • getHeaders

        @Nullable
        public java.util.Map<java.lang.String,​java.lang.String> getHeaders()
      • setHeaders

        public void setHeaders​(@Nullable
                               java.util.Map<java.lang.String,​java.lang.String> headers)