Class HttpUtils


  • public final class HttpUtils
    extends Object
    HttpUtils.
    Author:
    Andreas Rudolph
    • Method Detail

      • builder

        public static org.apache.http.impl.client.HttpClientBuilder builder()
      • builder

        public static org.apache.http.impl.client.HttpClientBuilder builder​(int timeout)
      • builder

        public static org.apache.http.impl.client.HttpClientBuilder builder​(boolean caching)
      • builder

        public static org.apache.http.impl.client.HttpClientBuilder builder​(int timeout,
                                                                            boolean caching)
      • createAuthentication

        public static org.apache.http.client.CredentialsProvider createAuthentication​(String user,
                                                                                      String password)
      • createAuthentication

        public static org.apache.http.client.CredentialsProvider createAuthentication​(String user,
                                                                                      String password,
                                                                                      org.apache.http.auth.AuthScope scope)
      • createAuthentification

        @Deprecated
        public static org.apache.http.client.CredentialsProvider createAuthentification​(String user,
                                                                                        String password)
        Deprecated.
      • createAuthentification

        @Deprecated
        public static org.apache.http.client.CredentialsProvider createAuthentification​(String user,
                                                                                        String password,
                                                                                        org.apache.http.auth.AuthScope scope)
        Deprecated.
      • createProxySelector

        public static ProxySelector createProxySelector​(String host,
                                                        int port)
      • getCacheEntry

        public static org.apache.http.client.cache.HttpCacheEntry getCacheEntry​(String uri)
      • hasCacheEntry

        public static boolean hasCacheEntry​(String uri)