Class HttpClientConnectionFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      HttpConnection create​(java.net.URL url)
      Creates a new connection to a destination defined by a URL
      HttpConnection create​(java.net.URL url, java.net.Proxy proxy)
      Creates a new connection to a destination defined by a URL using a proxy
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpClientConnectionFactory

        public HttpClientConnectionFactory()
    • Method Detail

      • create

        public HttpConnection create​(java.net.URL url)
                              throws java.io.IOException
        Creates a new connection to a destination defined by a URL
        Specified by:
        create in interface HttpConnectionFactory
        Parameters:
        url - a URL object.
        Returns:
        a HttpConnection
        Throws:
        java.io.IOException
      • create

        public HttpConnection create​(java.net.URL url,
                                     java.net.Proxy proxy)
                              throws java.io.IOException
        Creates a new connection to a destination defined by a URL using a proxy
        Specified by:
        create in interface HttpConnectionFactory
        Parameters:
        url - a URL object.
        proxy - the proxy to be used
        Returns:
        a HttpConnection
        Throws:
        java.io.IOException