Package org.openstreetmap.josm.tools
Interface HttpClient.HttpClientFactory
-
- Enclosing class:
- HttpClient
- 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 static interface HttpClient.HttpClientFactory
HTTP client factory.- Since:
- 15229
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpClient
create(java.net.URL url, java.lang.String requestMethod)
Creates a new instance for the given URL and aGET
request
-
-
-
Method Detail
-
create
HttpClient create(java.net.URL url, java.lang.String requestMethod)
Creates a new instance for the given URL and aGET
request- Parameters:
url
- the URLrequestMethod
- the HTTP request method to perform when calling- Returns:
- a new instance
-
-