Class HttpURLConnectionFactory
java.lang.Object
io.github.coho04.githubapi.factories.HttpURLConnectionFactory
Factory class for creating HttpURLConnection instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new HttpURLConnection instance for the given URL.
-
Constructor Details
-
HttpURLConnectionFactory
public HttpURLConnectionFactory()
-
-
Method Details
-
createHttpURLConnection
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.
-