Class JavaHttpClient
- java.lang.Object
-
- org.projectnessie.client.http.impl.jdk11.JavaHttpClient
-
- All Implemented Interfaces:
java.lang.AutoCloseable,HttpClient
public final class JavaHttpClient extends java.lang.Object implements HttpClient
Nessie's HTTP client used when running on Java 11 or newer.Java's new
HttpClientprovides a lot of benefits, such as HTTP/2 support, proper redirection support (if enabled), and advanced security capabilities. See theHttpClientBuilderfor parameters supported only by this client implementation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.projectnessie.client.http.HttpClient
HttpClient.Builder, HttpClient.Method
-
-
Constructor Summary
Constructors Constructor Description JavaHttpClient(HttpRuntimeConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.net.URIgetBaseUri()HttpRequestnewRequest()
-
-
-
Constructor Detail
-
JavaHttpClient
public JavaHttpClient(HttpRuntimeConfig config)
-
-
Method Detail
-
newRequest
public HttpRequest newRequest()
- Specified by:
newRequestin interfaceHttpClient
-
getBaseUri
public java.net.URI getBaseUri()
- Specified by:
getBaseUriin interfaceHttpClient
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceHttpClient
-
-