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.
An interface that, given a
URI
creates a new HttpURLConnection
. This allows customization
of the creation and configuration of the HttpURLConnection
.-
Method Summary
Modifier and TypeMethodDescriptioncreateConnection
(URI uri) For the givenURI
create anHttpURLConnection
.
-
Method Details
-
createConnection
For the givenURI
create anHttpURLConnection
.- Parameters:
uri
- theURI
of the request- Returns:
- a
HttpURLConnection
to the givenURI
-