Package com.okta.sdk.resource.client
Class BaseApi
java.lang.Object
com.okta.sdk.resource.client.BaseApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-09-23T16:19:57.008753975Z[Etc/UTC]",
comments="Generator version: 7.8.0")
public abstract class BaseApi
extends Object
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Directly invoke the API for the given URL.<T> T
Directly invoke the API for the given URL.void
Directly invoke the API for the given URL.<T> T
invokeAPI
(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType) Directly invoke the API for the given URL.abstract <T> T
invokeAPI
(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) Directly invoke the API for the given URL.void
Directly invoke the API for the given URL.void
Directly invoke the API for the given URL.void
setApiClient
(ApiClient apiClient)
-
Field Details
-
apiClient
-
-
Constructor Details
-
BaseApi
public BaseApi() -
BaseApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
invokeAPI
Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Parameters:
url
- The URL for the request, either full URL or only the path.method
- The HTTP method for the request.- Throws:
ApiException
- if fails to make API call.
-
invokeAPI
public void invokeAPI(String url, String method, Map<String, String> additionalHeaders) throws ApiExceptionDirectly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Parameters:
url
- The URL for the request, either full URL or only the path.method
- The HTTP method for the request.additionalHeaders
- Additional headers for the request.- Throws:
ApiException
- if fails to make API call.
-
invokeAPI
Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Parameters:
url
- The URL for the request, either full URL or only the path.method
- The HTTP method for the request.request
- The request object.- Throws:
ApiException
- if fails to make API call.
-
invokeAPI
public void invokeAPI(String url, String method, Object request, Map<String, String> additionalHeaders) throws ApiExceptionDirectly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Parameters:
url
- The URL for the request, either full URL or only the path.method
- The HTTP method for the request.request
- The request object.additionalHeaders
- Additional headers for the request.- Throws:
ApiException
- if fails to make API call.
-
invokeAPI
public <T> T invokeAPI(String url, String method, com.fasterxml.jackson.core.type.TypeReference<T> returnType) throws ApiException Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Parameters:
url
- The URL for the request, either full URL or only the path.method
- The HTTP method for the request.returnType
- The return type.- Returns:
- The API response in the specified type.
- Throws:
ApiException
- if fails to make API call.
-
invokeAPI
public <T> T invokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType) throws ApiException Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Parameters:
url
- The URL for the request, either full URL or only the path.method
- The HTTP method for the request.request
- The request object.returnType
- The return type.- Returns:
- The API response in the specified type.
- Throws:
ApiException
- if fails to make API call.
-
invokeAPI
public abstract <T> T invokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiExceptionDirectly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Parameters:
url
- The URL for the request, either full URL or only the path.method
- The HTTP method for the request.request
- The request object.returnType
- The return type.additionalHeaders
- Additional headers for the request.- Returns:
- The API response in the specified type.
- Throws:
ApiException
- if fails to make API call.
-