Class GatewayLifecycleApi
java.lang.Object
org.wso2.am.integration.clients.internal.api.GatewayLifecycleApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGateway Register or Heartbeat Accepts a payload indicating either a gateway registration or a heartbeat update.com.squareup.okhttp.CallnotifyGatewayPostAsync(NotifyGatewayPayloadDTO body, ApiCallback<NotifyGatewayStatusResponseDTO> callback) Gateway Register or Heartbeat (asynchronously) Accepts a payload indicating either a gateway registration or a heartbeat update.com.squareup.okhttp.CallnotifyGatewayPostCall(NotifyGatewayPayloadDTO body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) Build call for notifyGatewayPostGateway Register or Heartbeat Accepts a payload indicating either a gateway registration or a heartbeat update.voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
GatewayLifecycleApi
public GatewayLifecycleApi() -
GatewayLifecycleApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
notifyGatewayPostCall
public com.squareup.okhttp.Call notifyGatewayPostCall(NotifyGatewayPayloadDTO body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException Build call for notifyGatewayPost- Parameters:
body- Gateway notification payload (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
notifyGatewayPost
public NotifyGatewayStatusResponseDTO notifyGatewayPost(NotifyGatewayPayloadDTO body) throws ApiException Gateway Register or Heartbeat Accepts a payload indicating either a gateway registration or a heartbeat update. The `payloadType` field distinguishes the operation.- Parameters:
body- Gateway notification payload (required)- Returns:
- NotifyGatewayStatusResponseDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
notifyGatewayPostWithHttpInfo
public ApiResponse<NotifyGatewayStatusResponseDTO> notifyGatewayPostWithHttpInfo(NotifyGatewayPayloadDTO body) throws ApiException Gateway Register or Heartbeat Accepts a payload indicating either a gateway registration or a heartbeat update. The `payloadType` field distinguishes the operation.- Parameters:
body- Gateway notification payload (required)- Returns:
- ApiResponse<NotifyGatewayStatusResponseDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
notifyGatewayPostAsync
public com.squareup.okhttp.Call notifyGatewayPostAsync(NotifyGatewayPayloadDTO body, ApiCallback<NotifyGatewayStatusResponseDTO> callback) throws ApiException Gateway Register or Heartbeat (asynchronously) Accepts a payload indicating either a gateway registration or a heartbeat update. The `payloadType` field distinguishes the operation.- Parameters:
body- Gateway notification payload (required)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
-