Class BaseApi

java.lang.Object
com.okta.sdk.resource.client.BaseApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-09-23T08:35:59.300824-05:00[America/Chicago]", comments="Generator version: 7.8.0") public abstract class BaseApi extends Object
  • Field Details

  • Constructor Details

    • BaseApi

      public BaseApi()
    • BaseApi

      public BaseApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • invokeAPI

      public void invokeAPI(String url, String method) 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.
      Throws:
      ApiException - if fails to make API call.
    • invokeAPI

      public void invokeAPI(String url, String method, Map<String,String> additionalHeaders) 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.
      additionalHeaders - Additional headers for the request.
      Throws:
      ApiException - if fails to make API call.
    • invokeAPI

      public void invokeAPI(String url, String method, Object request) 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.
      Throws:
      ApiException - if fails to make API call.
    • invokeAPI

      public void invokeAPI(String url, String method, Object request, Map<String,String> additionalHeaders) 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.
      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 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.
      additionalHeaders - Additional headers for the request.
      Returns:
      The API response in the specified type.
      Throws:
      ApiException - if fails to make API call.