Class CommonsHttpClientImpl
java.lang.Object
io.weaviate.client.base.http.impl.CommonsHttpClientImpl
- All Implemented Interfaces:
HttpClient,Closeable,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionCommonsHttpClientImpl(Map<String, String> headers, CommonsHttpClientImpl.CloseableHttpClientBuilder clientBuilder) CommonsHttpClientImpl(Map<String, String> headers, AccessTokenProvider tokenProvider, CommonsHttpClientImpl.CloseableHttpClientBuilder clientBuilder) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()sendDeleteRequest(String url, String json) sendGetRequest(String url) sendHeadRequest(String url) sendPatchRequest(String url, String json) sendPostRequest(String url, String json) sendPutRequest(String url, String json)
-
Constructor Details
-
CommonsHttpClientImpl
public CommonsHttpClientImpl(Map<String, String> headers, CommonsHttpClientImpl.CloseableHttpClientBuilder clientBuilder) -
CommonsHttpClientImpl
public CommonsHttpClientImpl(Map<String, String> headers, AccessTokenProvider tokenProvider, CommonsHttpClientImpl.CloseableHttpClientBuilder clientBuilder)
-
-
Method Details
-
sendGetRequest
- Specified by:
sendGetRequestin interfaceHttpClient- Throws:
Exception
-
sendPostRequest
- Specified by:
sendPostRequestin interfaceHttpClient- Throws:
Exception
-
sendPutRequest
- Specified by:
sendPutRequestin interfaceHttpClient- Throws:
Exception
-
sendPatchRequest
- Specified by:
sendPatchRequestin interfaceHttpClient- Throws:
Exception
-
sendDeleteRequest
- Specified by:
sendDeleteRequestin interfaceHttpClient- Throws:
Exception
-
sendHeadRequest
- Specified by:
sendHeadRequestin interfaceHttpClient- Throws:
Exception
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-