Interface HttpURLConnection

  • All Known Implementing Classes:
    JdkHttpURLConnection

    public interface HttpURLConnection
    Perform a HTTP GET to a URL.
    • Method Detail

      • setTimeout

        void setTimeout​(int timeout)
        Parameters:
        timeout - socket read timeout, in milliseconds
      • connect

        void connect​(String url,
                     String username,
                     String password)
        Parameters:
        url - authenticated URL to connect to (basic authentication)
        username - the username to use for authentication
        password - the password to use for authentication