Package dev.restate.admin.api
Class ServiceHandlerApi
java.lang.Object
dev.restate.admin.api.ServiceHandlerApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondownloadFileFromResponse(HttpResponse<InputStream> response) Download file from the given response.protected ApiExceptiongetApiException(String operationId, HttpResponse<InputStream> response) getServiceHandler(String service, String handler) Get service handler Get the handler of a serviceGet service handler Get the handler of a servicegetServiceHandlerWithHttpInfo(String service, String handler) Get service handler Get the handler of a serviceGet service handler Get the handler of a servicelistServiceHandlers(String service) List service handlers List all the handlers of the given service.listServiceHandlers(String service, Map<String, String> headers) List service handlers List all the handlers of the given service.listServiceHandlersWithHttpInfo(String service) List service handlers List all the handlers of the given service.listServiceHandlersWithHttpInfo(String service, Map<String, String> headers) List service handlers List all the handlers of the given service.
-
Constructor Details
-
ServiceHandlerApi
public ServiceHandlerApi() -
ServiceHandlerApi
-
-
Method Details
-
getApiException
protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException - Throws:
IOException
-
downloadFileFromResponse
Download file from the given response.- Parameters:
response- Response- Returns:
- File
- Throws:
ApiException- If fail to read file content from response and write to disk
-
getServiceHandler
public HandlerMetadata getServiceHandler(@Nonnull String service, @Nonnull String handler) throws ApiException Get service handler Get the handler of a service- Parameters:
service- Fully qualified service name. (required)handler- Handler name. (required)- Returns:
- HandlerMetadata
- Throws:
ApiException- if fails to make API call
-
getServiceHandler
public HandlerMetadata getServiceHandler(@Nonnull String service, @Nonnull String handler, Map<String, String> headers) throws ApiExceptionGet service handler Get the handler of a service- Parameters:
service- Fully qualified service name. (required)handler- Handler name. (required)headers- Optional headers to include in the request- Returns:
- HandlerMetadata
- Throws:
ApiException- if fails to make API call
-
getServiceHandlerWithHttpInfo
public ApiResponse<HandlerMetadata> getServiceHandlerWithHttpInfo(@Nonnull String service, @Nonnull String handler) throws ApiException Get service handler Get the handler of a service- Parameters:
service- Fully qualified service name. (required)handler- Handler name. (required)- Returns:
- ApiResponse<HandlerMetadata>
- Throws:
ApiException- if fails to make API call
-
getServiceHandlerWithHttpInfo
public ApiResponse<HandlerMetadata> getServiceHandlerWithHttpInfo(@Nonnull String service, @Nonnull String handler, Map<String, String> headers) throws ApiExceptionGet service handler Get the handler of a service- Parameters:
service- Fully qualified service name. (required)handler- Handler name. (required)headers- Optional headers to include in the request- Returns:
- ApiResponse<HandlerMetadata>
- Throws:
ApiException- if fails to make API call
-
listServiceHandlers
List service handlers List all the handlers of the given service.- Parameters:
service- Fully qualified service name. (required)- Returns:
- ListServiceHandlersResponse
- Throws:
ApiException- if fails to make API call
-
listServiceHandlers
public ListServiceHandlersResponse listServiceHandlers(@Nonnull String service, Map<String, String> headers) throws ApiExceptionList service handlers List all the handlers of the given service.- Parameters:
service- Fully qualified service name. (required)headers- Optional headers to include in the request- Returns:
- ListServiceHandlersResponse
- Throws:
ApiException- if fails to make API call
-
listServiceHandlersWithHttpInfo
public ApiResponse<ListServiceHandlersResponse> listServiceHandlersWithHttpInfo(@Nonnull String service) throws ApiException List service handlers List all the handlers of the given service.- Parameters:
service- Fully qualified service name. (required)- Returns:
- ApiResponse<ListServiceHandlersResponse>
- Throws:
ApiException- if fails to make API call
-
listServiceHandlersWithHttpInfo
public ApiResponse<ListServiceHandlersResponse> listServiceHandlersWithHttpInfo(@Nonnull String service, Map<String, String> headers) throws ApiExceptionList service handlers List all the handlers of the given service.- Parameters:
service- Fully qualified service name. (required)headers- Optional headers to include in the request- Returns:
- ApiResponse<ListServiceHandlersResponse>
- Throws:
ApiException- if fails to make API call
-