Class ApiClient
java.lang.Object
com.lancedb.lance.namespace.client.apache.JavaTimeFormatter
com.lancedb.lance.namespace.client.apache.ApiClient
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.12.0")
public class ApiClient
extends JavaTimeFormatter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Integer
protected List<ServerConfiguration>
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDefaultCookie
(String key, String value) addDefaultHeader
(String key, String value) protected org.apache.hc.client5.http.cookie.Cookie
buildCookie
(String key, String value, URI uri) static DateFormat
<T> T
deserialize
(org.apache.hc.client5.http.impl.classic.CloseableHttpResponse response, com.fasterxml.jackson.core.type.TypeReference<T> valueType) escapeString
(String str) formatDate
(Date date) getAuthentication
(String authName) int
org.apache.hc.client5.http.impl.classic.CloseableHttpClient
com.fasterxml.jackson.databind.ObjectMapper
Deprecated.int
Deprecated.<T> T
invokeAPI
(String path, String method, List<Pair> queryParams, List<Pair> collectionQueryParams, String urlQueryDeepObject, Object body, Map<String, String> headerParams, Map<String, String> cookieParams, Map<String, Object> formParams, String accept, String contentType, String[] authNames, com.fasterxml.jackson.core.type.TypeReference<T> returnType) protected boolean
isBodyAllowed
(String method) boolean
boolean
isJsonMime
(String mime) protected boolean
isSuccessfulStatus
(int statusCode) parameterToPair
(String name, Object value) parameterToPairs
(String collectionFormat, String name, Collection<?> value) parameterToString
(Object param) protected File
prepareDownloadFile
(String contentDisposition) protected <T> T
processResponse
(org.apache.hc.client5.http.impl.classic.CloseableHttpResponse response, com.fasterxml.jackson.core.type.TypeReference<T> returnType) selectHeaderAccept
(String[] accepts) selectHeaderContentType
(String[] contentTypes) org.apache.hc.core5.http.HttpEntity
serialize
(Object obj, Map<String, Object> formParams, org.apache.hc.core5.http.ContentType contentType) setBasePath
(String basePath) setConnectTimeout
(int connectionTimeout) setDateFormat
(DateFormat dateFormat) setDebugging
(boolean debugging) setHttpClient
(org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient) setObjectMapper
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) setServerIndex
(Integer serverIndex) setServers
(List<ServerConfiguration> servers) setServerVariables
(Map<String, String> serverVariables) setTempFolderPath
(String tempFolderPath) final ApiClient
setUserAgent
(String userAgent) transformResponseHeaders
(org.apache.hc.core5.http.Header[] headers) Methods inherited from class com.lancedb.lance.namespace.client.apache.JavaTimeFormatter
formatOffsetDateTime, getOffsetDateTimeFormatter, parseOffsetDateTime, setOffsetDateTimeFormatter
-
Field Details
-
servers
-
serverIndex
-
serverVariables
-
tempFolderPath
-
-
Constructor Details
-
ApiClient
public ApiClient(org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient) -
ApiClient
public ApiClient()
-
-
Method Details
-
buildDefaultDateFormat
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
setObjectMapper
-
getHttpClient
public org.apache.hc.client5.http.impl.classic.CloseableHttpClient getHttpClient() -
setHttpClient
public ApiClient setHttpClient(org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient) -
getBasePath
-
setBasePath
-
getServers
-
setServers
-
getServerIndex
-
setServerIndex
-
getServerVariables
-
setServerVariables
-
getStatusCode
Deprecated. -
getResponseHeaders
Deprecated. -
getAuthentications
-
getAuthentication
-
getTempFolderPath
-
setUserAgent
-
setTempFolderPath
-
addDefaultHeader
-
addDefaultCookie
-
isDebugging
public boolean isDebugging() -
setDebugging
-
getConnectTimeout
public int getConnectTimeout() -
setConnectTimeout
-
getDateFormat
-
setDateFormat
-
parseDate
-
formatDate
-
parameterToString
-
parameterToPair
-
parameterToPairs
-
isJsonMime
-
selectHeaderAccept
-
selectHeaderContentType
-
escapeString
-
transformResponseHeaders
-
serialize
public org.apache.hc.core5.http.HttpEntity serialize(Object obj, Map<String, Object> formParams, org.apache.hc.core5.http.ContentType contentType) throws ApiException -
deserialize
public <T> T deserialize(org.apache.hc.client5.http.impl.classic.CloseableHttpResponse response, com.fasterxml.jackson.core.type.TypeReference<T> valueType) throws ApiException, IOException, org.apache.hc.core5.http.ParseException -
prepareDownloadFile
-
getBaseURL
-
isSuccessfulStatus
protected boolean isSuccessfulStatus(int statusCode) -
isBodyAllowed
-
buildCookie
-
processResponse
protected <T> T processResponse(org.apache.hc.client5.http.impl.classic.CloseableHttpResponse response, com.fasterxml.jackson.core.type.TypeReference<T> returnType) throws ApiException, IOException, org.apache.hc.core5.http.ParseException -
invokeAPI
public <T> T invokeAPI(String path, String method, List<Pair> queryParams, List<Pair> collectionQueryParams, String urlQueryDeepObject, Object body, Map<String, String> headerParams, Map<String, throws ApiExceptionString> cookieParams, Map<String, Object> formParams, String accept, String contentType, String[] authNames, com.fasterxml.jackson.core.type.TypeReference<T> returnType)
-