Class OciResponseParser
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
Utility methods for processing OCI JSON responses.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected InstantgetInstant(JsonObject json, String name) Get instant from JSON using a parser that understands OCI date time format.toInstant(JsonObject json, String name) Get instant from JSON using a parser that understands OCI date time format.Methods inherited from class io.helidon.integrations.common.rest.ApiJsonParser
isPresent, stringValue, toBoolean, toBytesBase64, toDouble, toInstant, toInt, toList, toLong, toMap, toObject, toString
-
Constructor Details
-
OciResponseParser
protected OciResponseParser()New instance.
-
-
Method Details
-
getInstant
Get instant from JSON using a parser that understands OCI date time format.- Parameters:
json- JSON objectname- property of the object- Returns:
- instant parsed from the string value of the property
-
toInstant
Get instant from JSON using a parser that understands OCI date time format.- Parameters:
json- JSON objectname- property of the object- Returns:
- instant parsed from the string value of the property, or empty if not present or null
-