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

      • toString

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

        public HttpConfig withUrl​(java.net.URI url)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withEndpoint

        public HttpConfig withEndpoint​(@Nullable
                                       java.lang.String endpoint)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withTimeout

        public HttpConfig withTimeout​(@Nullable
                                      java.lang.Double timeout)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withTimeoutInMillis

        public HttpConfig withTimeoutInMillis​(@Nullable
                                              java.lang.Integer timeoutInMillis)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withAuth

        public HttpConfig withAuth​(@Nullable
                                   TokenProvider auth)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withUrlParams

        public HttpConfig withUrlParams​(@Nullable
                                        java.util.Map<java.lang.String,​java.lang.String> urlParams)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withHeaders

        public HttpConfig withHeaders​(@Nullable
                                      java.util.Map<java.lang.String,​java.lang.String> headers)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withCompression

        public HttpConfig withCompression​(@Nullable
                                          HttpConfig.Compression compression)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • 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)