Class OciRestApi.Builder

  • All Implemented Interfaces:
    Builder<OciRestApi>, Supplier<OciRestApi>
    Enclosing class:
    OciRestApi

    public static class OciRestApi.Builder
    extends RestApi.Builder<OciRestApi.Builder,​OciRestApi>
    Fluent API builder for OciRestApi.

    The final host of each endpoint is computed based on a format provided by each request (usually the same format for a certain area, such as Vault, ObjectStorage etc.), and a prefix also received with each request.

    The template %s://%s.%s.%s would resolve into ${scheme}://${hostPrefix}.${region}.oci.${domain}.

    Let's consider the following configuration:

    • scheme: "oraclecloud.com"
    • hostPrefix: vaults
    • region: eu-frankfurt-1
    • domain: "oraclecloud.com"
    we would get https://vaults.eu-frankfurt-1.oraclecloud.com as the endpoint. In case we need to connect to a local docker image, or a testing environment, an explicit address can be configured for each domain specific API, or parts of the template can be modified if the final address matches the expected structure.