Class OciRestApi
- java.lang.Object
- 
- io.helidon.integrations.common.rest.RestApiBase
- 
- io.helidon.integrations.oci.connect.OciRestApi
 
 
- 
- All Implemented Interfaces:
- RestApi
 
 @Deprecated(since="2.5.0", forRemoval=true) public class OciRestApi extends RestApiBase Deprecated, for removal: This API element is subject to removal in a future version.OCI SDK insteadOCI specific REST API. This class uses HTTP Signatures to sign requests.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classOciRestApi.BuilderDeprecated, for removal: This API element is subject to removal in a future version.Fluent API builder forOciRestApi.static classOciRestApi.ConfigTypeDeprecated, for removal: This API element is subject to removal in a future version.How to connect to OCI.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OciRestApi.Builderbuilder()Deprecated, for removal: This API element is subject to removal in a future version.A new builder to configure instances.static OciRestApicreate()Deprecated, for removal: This API element is subject to removal in a future version.Create API with default configuration.static OciRestApicreate(Config config)Deprecated, for removal: This API element is subject to removal in a future version.Create OCI REST API from configuration.protected ThrowablereadError(String path, ApiRequest<?> request, Http.RequestMethod method, String requestId, WebClientResponse response)Deprecated, for removal: This API element is subject to removal in a future version.Read error with no entity (content length set to 0).protected ThrowablereadError(String path, ApiRequest<?> request, Http.RequestMethod method, String requestId, WebClientResponse response, String entity)Deprecated, for removal: This API element is subject to removal in a future version.Read error with an entity that failed to be parsed into a JSON object.protected ThrowablereadError(String path, ApiRequest<?> request, Http.RequestMethod method, String requestId, WebClientResponse response, JsonObject json)Deprecated, for removal: This API element is subject to removal in a future version.Read error with a JSON entity.protected ThrowablereadErrorFailedEntity(String path, ApiRequest<?> request, Http.RequestMethod method, String requestId, WebClientResponse response, Throwable it)Deprecated, for removal: This API element is subject to removal in a future version.Read error information when we failed to read resposen entity.protected Supplier<Single<WebClientResponse>>requestBytesPayload(String path, ApiRequest<?> request, Http.RequestMethod method, String requestId, WebClientRequestBuilder requestBuilder, Flow.Publisher<DataChunk> publisher)Deprecated, for removal: This API element is subject to removal in a future version.Create a supplier for a response with publisher request.protected Supplier<Single<WebClientResponse>>requestJsonPayload(String path, ApiRequest<?> request, Http.RequestMethod method, String requestId, WebClientRequestBuilder requestBuilder, JsonObject jsonObject)Deprecated, for removal: This API element is subject to removal in a future version.Create a supplier for a response with JSON request.protected Supplier<Single<WebClientResponse>>responseSupplier(Http.RequestMethod method, String path, ApiRequest<?> request, String requestId)Deprecated, for removal: This API element is subject to removal in a future version.Create a response supplier from the request.protected Single<WebClientRequestBuilder>updateRequestBuilder(WebClientRequestBuilder requestBuilder, String path, ApiRequest<?> request, Http.RequestMethod method, String requestId)Deprecated, for removal: This API element is subject to removal in a future version.Update request builder with no request payload.protected Single<WebClientRequestBuilder>updateRequestBuilderBytesPayload(WebClientRequestBuilder requestBuilder, String path, ApiRequest<?> request, Http.RequestMethod method, String requestId)Deprecated, for removal: This API element is subject to removal in a future version.Update request builder with publisher request payload.protected Single<WebClientRequestBuilder>updateRequestBuilderCommon(WebClientRequestBuilder requestBuilder, String path, ApiRequest<?> request, Http.RequestMethod method, String requestId)Deprecated, for removal: This API element is subject to removal in a future version.Update request builder used by all default implementation inRestApiBase.- 
Methods inherited from class io.helidon.integrations.common.rest.RestApiBaseaddHeaders, addQueryParams, emptyResponse, errorResponse, ftHandler, handleBytesResponse, handleJsonResponse, handleOptionalJsonResponse, handlePublisherResponse, handleResponse, invoke, invokeBytesRequest, invokeBytesResponse, invokeOptional, invokePublisherResponse, invokeWithResponse, isEntityExpected, isSuccess, jsonBuilderFactory, jsonOkResponse, jsonReaderFactory, jsonWriterFactory, noEntityOkResponse, requestId, requestPayload, updateRequestBuilder, webClient
 
- 
 
- 
- 
- 
Method Detail- 
builderpublic static OciRestApi.Builder builder() Deprecated, for removal: This API element is subject to removal in a future version.A new builder to configure instances.- Returns:
- a new builder
 
 - 
createpublic static OciRestApi create() Deprecated, for removal: This API element is subject to removal in a future version.Create API with default configuration.- Returns:
- a new REST API with default configuration
 
 - 
createpublic static OciRestApi create(Config config) Deprecated, for removal: This API element is subject to removal in a future version.Create OCI REST API from configuration.- Parameters:
- config- configuration
- Returns:
- a new REST API configured from config
 
 - 
responseSupplierprotected Supplier<Single<WebClientResponse>> responseSupplier(Http.RequestMethod method, String path, ApiRequest<?> request, String requestId) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:RestApiBaseCreate a response supplier from the request. This method checks if there is a payload, and prepares the supplier based on this information.- Overrides:
- responseSupplierin class- RestApiBase
- Parameters:
- method- HTTP method to invoke
- path- path to invoke
- request- request that may contain a JSON entity
- requestId- request ID to use for this request
- Returns:
- supplier of response that is used with fault tolerance
 
 - 
requestBytesPayloadprotected Supplier<Single<WebClientResponse>> requestBytesPayload(String path, ApiRequest<?> request, Http.RequestMethod method, String requestId, WebClientRequestBuilder requestBuilder, Flow.Publisher<DataChunk> publisher) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:RestApiBaseCreate a supplier for a response with publisher request. Defaults to "() -> clientRequest.submit(publisher)". Also configures content type and accept headers.- Overrides:
- requestBytesPayloadin class- RestApiBase
- Parameters:
- path- path requested
- request- API request
- method- HTTP method
- requestId- ID of this request
- requestBuilder-- WebClientrequest builder
- publisher- publisher to be used as request entity
- Returns:
- supplier of a web client response
 
 - 
readErrorFailedEntityprotected Throwable readErrorFailedEntity(String path, ApiRequest<?> request, Http.RequestMethod method, String requestId, WebClientResponse response, Throwable it) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:RestApiBaseRead error information when we failed to read resposen entity.- Overrides:
- readErrorFailedEntityin class- RestApiBase
- Parameters:
- path- requested path
- request- original request
- method- HTTP method
- requestId- ID of the request
- response- actual response where we do not expect an entity
- it- throwable that caused this problem (such as parsing exception)
- Returns:
- throwable to be used in response
 
 - 
readErrorprotected Throwable readError(String path, ApiRequest<?> request, Http.RequestMethod method, String requestId, WebClientResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:RestApiBaseRead error with no entity (content length set to 0).- Overrides:
- readErrorin class- RestApiBase
- Parameters:
- path- requested path
- request- original API request
- method- HTTP method
- requestId- request ID
- response- web client response with entity consumed
- Returns:
- a throwable to be used in response
 
 - 
readErrorprotected Throwable readError(String path, ApiRequest<?> request, Http.RequestMethod method, String requestId, WebClientResponse response, String entity) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:RestApiBaseRead error with an entity that failed to be parsed into a JSON object.- Overrides:
- readErrorin class- RestApiBase
- Parameters:
- path- requested path
- request- original API request
- method- HTTP method
- requestId- request ID
- response- web client response with entity consumed
- entity- entity as a string
- Returns:
- a throwable to be used in response
 
 - 
readErrorprotected Throwable readError(String path, ApiRequest<?> request, Http.RequestMethod method, String requestId, WebClientResponse response, JsonObject json) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:RestApiBaseRead error with a JSON entity.- Overrides:
- readErrorin class- RestApiBase
- Parameters:
- path- requested path
- request- original API request
- method- HTTP method
- requestId- request ID
- response- web client response with entity consumed
- json- entity as a JSON object
- Returns:
- a throwable to be used in response
 
 - 
updateRequestBuilderprotected Single<WebClientRequestBuilder> updateRequestBuilder(WebClientRequestBuilder requestBuilder, String path, ApiRequest<?> request, Http.RequestMethod method, String requestId) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:RestApiBaseUpdate request builder with no request payload. Default implementation does nothing.- Overrides:
- updateRequestBuilderin class- RestApiBase
- Parameters:
- requestBuilder- current request builder
- path- path to be executed
- request- API request
- method- method
- requestId- request ID
- Returns:
- updated builder
 
 - 
updateRequestBuilderBytesPayloadprotected Single<WebClientRequestBuilder> updateRequestBuilderBytesPayload(WebClientRequestBuilder requestBuilder, String path, ApiRequest<?> request, Http.RequestMethod method, String requestId) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:RestApiBaseUpdate request builder with publisher request payload. Default implementation does nothing.- Overrides:
- updateRequestBuilderBytesPayloadin class- RestApiBase
- Parameters:
- requestBuilder- current request builder
- path- path to be executed
- request- API request
- method- method
- requestId- request ID
- Returns:
- updated builder
 
 - 
requestJsonPayloadprotected Supplier<Single<WebClientResponse>> requestJsonPayload(String path, ApiRequest<?> request, Http.RequestMethod method, String requestId, WebClientRequestBuilder requestBuilder, JsonObject jsonObject) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:RestApiBaseCreate a supplier for a response with JSON request. Defaults to "() -> clientRequest.submit(jsonObject)". Also configures content type and accept headers.- Overrides:
- requestJsonPayloadin class- RestApiBase
- Parameters:
- path- path requested
- request- API request
- method- HTTP method
- requestId- ID of this request
- requestBuilder-- WebClientrequest builder
- jsonObject- JSON object that should be sent as a request entity
- Returns:
- supplier of a web client response
 
 - 
updateRequestBuilderCommonprotected Single<WebClientRequestBuilder> updateRequestBuilderCommon(WebClientRequestBuilder requestBuilder, String path, ApiRequest<?> request, Http.RequestMethod method, String requestId) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:RestApiBaseUpdate request builder used by all default implementation inRestApiBase.- Overrides:
- updateRequestBuilderCommonin class- RestApiBase
- Parameters:
- requestBuilder- current request builder
- path- path to be executed
- request- API request
- method- method
- requestId- request ID
- Returns:
- updated builder
 
 
- 
 
-