Interface UrlConnectionFactory
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface UrlConnectionFactory
An interface that, given aURIcreates a newHttpURLConnection. This allows customization of the creation and configuration of theHttpURLConnection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpURLConnectioncreateConnection(URI uri)For the givenURIcreate anHttpURLConnection.
-
-
-
Method Detail
-
createConnection
HttpURLConnection createConnection(URI uri)
For the givenURIcreate anHttpURLConnection.- Parameters:
uri- theURIof the request- Returns:
- a
HttpURLConnectionto the givenURI
-
-