Interface HttpUrlConnectionFactory
- All Known Implementing Classes:
DefaultHttpUrlConnectionFactory,Finite
public interface HttpUrlConnectionFactory
Interface of a factory for HttpUrlConnection instances.
-
Method Summary
Modifier and TypeMethodDescriptionhttpUrlConnection(URI uri) Returns anHttpURLConnectionto the given Uri.
-
Method Details
-
httpUrlConnection
Returns anHttpURLConnectionto the given Uri.- Parameters:
uri- The uri to connect to. This must be an absolute URL.- Returns:
- An
HttpURLConnection. - Throws:
IllegalArgumentException- if the given URI was not a valid absolute URL.IOException
-