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 givenURIcreate anHttpURLConnection.
-
Method Details
-
createConnection
For the givenURIcreate anHttpURLConnection.- Parameters:
uri- theURIof the request- Returns:
- a
HttpURLConnectionto the givenURI
-