Class UrlConnectionClient
java.lang.Object
org.projectnessie.client.http.impl.jdk8.UrlConnectionClient
- All Implemented Interfaces:
AutoCloseable,HttpClient
Simple Http client to make REST calls.
Assumptions: - always send/receive JSON - set headers accordingly by default - very simple interactions w/ API - no cookies - no caching of connections. Could be slow
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.projectnessie.client.http.HttpClient
HttpClient.Builder, HttpClient.Method -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUrlConnectionClient(HttpRuntimeConfig config) Construct an HTTP client with a universal Accept header. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.projectnessie.client.http.HttpClient
newRequest
-
Field Details
-
UNSUPPORTED_CONFIG_MESSAGE
- See Also:
-
-
Constructor Details
-
UrlConnectionClient
Construct an HTTP client with a universal Accept header.- Parameters:
config- http client configuration
-
-
Method Details
-
newRequest
- Specified by:
newRequestin interfaceHttpClient
-
getBaseUri
- Specified by:
getBaseUriin interfaceHttpClient
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceHttpClient
-