Package nl.b3p.brmo.util.http
Class HttpClientWrappers
java.lang.Object
nl.b3p.brmo.util.http.HttpClientWrappers
Provides default wrapper implementations for Java HTTP clients.
If the java.specification.version
system property is 11 or higher, returns a Java11HttpClientWrapper
unless the system property httpclientwrapper
is set to
urlconnection
. This client tries to upgrade the connection HTTP/2 by default, unless the
httpclientwrapper.java11.http1_1
system property is set.
When the Java version is lower than 11, a URLConnectionHttpClientWrapper
is returned.
- Author:
- Matthijs Laan
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
HttpClientWrappers
public HttpClientWrappers()
-
-
Method Details
-
getDefault
-