Interface HttpUrlConnectorProvider.ConnectionFactory

    • Method Detail

      • getConnection

        java.net.HttpURLConnection getConnection​(java.net.URL url)
                                          throws java.io.IOException
        Get a HttpURLConnection for a given URL.

        Implementation of the method MUST be thread-safe and MUST ensure that a dedicated HttpURLConnection instance is returned for concurrent requests.

        Parameters:
        url - the endpoint URL.
        Returns:
        the HttpURLConnection.
        Throws:
        java.io.IOException - in case the connection cannot be provided.