Class NotificationApi

java.lang.Object
org.wso2.am.integration.clients.internal.api.NotificationApi

public class NotificationApi extends Object
  • Constructor Details

    • NotificationApi

      public NotificationApi()
    • NotificationApi

      public NotificationApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • notifyPostCall

      public com.squareup.okhttp.Call notifyPostCall(String xWSO2KEYMANAGER, String body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for notifyPost
      Parameters:
      xWSO2KEYMANAGER - This is used to specify the tenant domain, where the resource need to be retrieved from. (required)
      body - Notification event payload (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • notifyPost

      public Object notifyPost(String xWSO2KEYMANAGER, String body) throws ApiException
      Push notification events into nodes. This pushes events to the other nodes.
      Parameters:
      xWSO2KEYMANAGER - This is used to specify the tenant domain, where the resource need to be retrieved from. (required)
      body - Notification event payload (optional)
      Returns:
      Object
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • notifyPostWithHttpInfo

      public ApiResponse<Object> notifyPostWithHttpInfo(String xWSO2KEYMANAGER, String body) throws ApiException
      Push notification events into nodes. This pushes events to the other nodes.
      Parameters:
      xWSO2KEYMANAGER - This is used to specify the tenant domain, where the resource need to be retrieved from. (required)
      body - Notification event payload (optional)
      Returns:
      ApiResponse<Object>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • notifyPostAsync

      public com.squareup.okhttp.Call notifyPostAsync(String xWSO2KEYMANAGER, String body, ApiCallback<Object> callback) throws ApiException
      Push notification events into nodes. (asynchronously) This pushes events to the other nodes.
      Parameters:
      xWSO2KEYMANAGER - This is used to specify the tenant domain, where the resource need to be retrieved from. (required)
      body - Notification event payload (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object