Class HttpTransport.Builder

  • Enclosing class:
    HttpTransport

    @Deprecated
    public static final class HttpTransport.Builder
    extends java.lang.Object
    Deprecated.
    Use HttpConfig instead
    Builder for HttpTransport instances.

    Usage:

    
     HttpTransport httpTransport = HttpTransport().builder()
       .url("http://localhost:5000")
       .build()
     
    • Method Detail

      • uri

        public HttpTransport.Builder uri​(@NonNull
                                         @NonNull java.lang.String urlAsString,
                                         @NonNull
                                         @NonNull java.util.Map<java.lang.String,​java.lang.String> queryParams)
        Deprecated.
      • uri

        public HttpTransport.Builder uri​(@NonNull
                                         @NonNull java.net.URI uri,
                                         @NonNull
                                         @NonNull java.util.Map<java.lang.String,​java.lang.String> queryParams)
        Deprecated.
      • http

        public HttpTransport.Builder http​(@NonNull
                                          @NonNull org.apache.http.impl.client.CloseableHttpClient httpClient)
        Deprecated.
      • withUrl

        public HttpConfig withUrl​(java.net.URI url)
        Deprecated.
      • withEndpoint

        public HttpConfig withEndpoint​(java.lang.String endpoint)
        Deprecated.
      • withTimeout

        public HttpConfig withTimeout​(java.lang.Double timeout)
        Deprecated.
      • withTimeoutInMillis

        public HttpConfig withTimeoutInMillis​(java.lang.Integer timeoutInMillis)
        Deprecated.
      • withUrlParams

        public HttpConfig withUrlParams​(java.util.Map<java.lang.String,​java.lang.String> urlParams)
        Deprecated.
      • withHeaders

        public HttpConfig withHeaders​(java.util.Map<java.lang.String,​java.lang.String> headers)
        Deprecated.
      • getUrl

        public java.net.URI getUrl()
        Deprecated.
      • setUrl

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

        public java.lang.String getEndpoint()
        Deprecated.
      • setEndpoint

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

        public java.lang.Double getTimeout()
        Deprecated.
      • setTimeout

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

        public java.lang.Integer getTimeoutInMillis()
        Deprecated.
      • setTimeoutInMillis

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

        public void setAuth​(TokenProvider auth)
        Deprecated.
      • getUrlParams

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

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

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

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