Interface HttpRequest.ConnectionFactory

  • Enclosing class:
    HttpRequest

    public static interface HttpRequest.ConnectionFactory
    Creates HTTP connections for urls.
    • Method Detail

      • create

        java.net.HttpURLConnection create​(java.net.URL url)
                                   throws java.io.IOException
        Open an HttpURLConnection for the specified URL.
        Throws:
        java.io.IOException
      • create

        java.net.HttpURLConnection create​(java.net.URL url,
                                          java.net.Proxy proxy)
                                   throws java.io.IOException
        Open an HttpURLConnection for the specified URL and Proxy.
        Throws:
        java.io.IOException