Class HttpURLConnectionFactory

java.lang.Object
io.github.coho04.githubapi.factories.HttpURLConnectionFactory

public class HttpURLConnectionFactory extends Object
Factory class for creating HttpURLConnection instances.
  • Constructor Details

    • HttpURLConnectionFactory

      public HttpURLConnectionFactory()
  • Method Details

    • createHttpURLConnection

      public HttpURLConnection createHttpURLConnection(String url) throws IOException
      Creates a new HttpURLConnection instance for the given URL.
      Parameters:
      url - The URL for which the connection is to be established.
      Returns:
      The created HttpURLConnection instance.
      Throws:
      IOException - If an I/O exception occurs while opening the connection.