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
@Deprecated(since="2.5.0", forRemoval=true) public abstract class OciResponseParser extends ApiJsonParser
Deprecated, for removal: This API element is subject to removal in a future version.OCI SDK insteadUtility methods for processing OCI JSON responses.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OciResponseParser()
Deprecated, for removal: This API element is subject to removal in a future version.New instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Instant
getInstant(JsonObject json, String name)
Deprecated, for removal: This API element is subject to removal in a future version.Get instant from JSON using a parser that understands OCI date time format.protected Optional<Instant>
toInstant(JsonObject json, String name)
Deprecated, for removal: This API element is subject to removal in a future version.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
-
-
-
-
Method Detail
-
getInstant
protected Instant getInstant(JsonObject json, String name)
Deprecated, for removal: This API element is subject to removal in a future version.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
protected Optional<Instant> toInstant(JsonObject json, String name)
Deprecated, for removal: This API element is subject to removal in a future version.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
-
-