Package fr.gouv.vitam.antivirus.client
Class VitamApiClient
java.lang.Object
fr.gouv.vitam.antivirus.client.invoker.JavaTimeFormatter
fr.gouv.vitam.antivirus.client.invoker.ApiClient
fr.gouv.vitam.antivirus.client.VitamApiClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TinvokeAPI(String path, String method, List<Pair> queryParams, Object body, Map<String, String> headerParams, Map<String, String> cookieParams, Map<String, Object> formParams, String accept, String contentType, String[] authNames, jakarta.ws.rs.core.GenericType<T> returnType) Invoke API by sending HTTP request with the given options.Methods inherited from class fr.gouv.vitam.antivirus.client.invoker.ApiClient
addDefaultHeader, deserialize, downloadFileFromResponse, escapeString, formatDate, getAuthentication, getAuthentications, getBasePath, getDateFormat, getHttpClient, getJSON, getResponseHeaders, getStatusCode, getTempFolderPath, isDebugging, isJsonMime, parameterToPairs, parameterToString, parseDate, prepareDownloadFile, selectHeaderAccept, selectHeaderContentType, serialize, setApiKey, setApiKeyPrefix, setBasePath, setDateFormat, setDebugging, setHttpClient, setPassword, setTempFolderPath, setUserAgent, setUsernameMethods inherited from class fr.gouv.vitam.antivirus.client.invoker.JavaTimeFormatter
formatOffsetDateTime, getOffsetDateTimeFormatter, parseOffsetDateTime, setOffsetDateTimeFormatter
-
Constructor Details
-
VitamApiClient
public VitamApiClient()
-
-
Method Details
-
invokeAPI
public <T> T invokeAPI(String path, String method, List<Pair> queryParams, Object body, Map<String, String> headerParams, Map<String, throws ApiExceptionString> cookieParams, Map<String, Object> formParams, String accept, String contentType, String[] authNames, jakarta.ws.rs.core.GenericType<T> returnType) Description copied from class:ApiClientInvoke API by sending HTTP request with the given options.- Overrides:
invokeAPIin classApiClient- Type Parameters:
T- a Java type parameter- Parameters:
path- The sub-path of the HTTP URLmethod- The request method, one of "GET", "POST", "PUT", "HEAD" and "DELETE"queryParams- The query parametersbody- The request body objectheaderParams- The header parameterscookieParams- The cookie parametersformParams- The form parametersaccept- The request's Accept headercontentType- The request's Content-Type headerauthNames- The authentications to applyreturnType- The return type into which to deserialize the response- Returns:
- The response body in type of string
- Throws:
ApiException- if the invocation failed
-