java.lang.Object
io.helidon.integrations.common.rest.ApiJsonParser
io.helidon.integrations.oci.connect.OciResponseParser
Direct Known Subclasses:
GenerateAutonomousDatabaseWallet.Response, GetBucket.Response, GetKey.Response, GetObject.Response, GetObjectRx.Response, GetSecretBundle.Response, GetVault.Response, Secret

public abstract class OciResponseParser extends ApiJsonParser
Utility methods for processing OCI JSON responses.
  • Constructor Details

    • OciResponseParser

      protected OciResponseParser()
      New instance.
  • Method Details

    • getInstant

      protected Instant getInstant(JsonObject json, String name)
      Get instant from JSON using a parser that understands OCI date time format.
      Parameters:
      json - JSON object
      name - property of the object
      Returns:
      instant parsed from the string value of the property
    • toInstant

      protected Optional<Instant> toInstant(JsonObject json, String name)
      Get instant from JSON using a parser that understands OCI date time format.
      Parameters:
      json - JSON object
      name - property of the object
      Returns:
      instant parsed from the string value of the property, or empty if not present or null