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.
      • 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.
      • mergePropertyWith

        public java.util.Map mergePropertyWith​(java.util.Map base,
                                               java.util.Map overwrite)
        Deprecated.
      • mergePropertyWith

        public <T> T mergePropertyWith​(T base,
                                       T overwrite)
        Deprecated.
      • mergeWithDefaultValue

        public <T> T mergeWithDefaultValue​(T base,
                                           T overwrite,
                                           T def)
        Deprecated.