public class DefaultJsonObject extends Object implements JsonObject
OAuth2ServiceConfiguration does not
provide all required properties.| Constructor and Description |
|---|
DefaultJsonObject(String jsonString)
Create an instance
|
| Modifier and Type | Method and Description |
|---|---|
String |
asJsonString() |
boolean |
contains(String key) |
java.time.Instant |
getAsInstant(String name) |
<T> List<T> |
getAsList(String name,
Class<T> type) |
String |
getAsString(String name) |
JsonObject |
getJsonObject(String name) |
List<JsonObject> |
getJsonObjects(String name) |
Map<String,String> |
getKeyValueMap() |
boolean |
isEmpty() |
public DefaultJsonObject(String jsonString)
jsonString - the content in json format that should be parsed.public boolean contains(String key)
contains in interface JsonObjectpublic boolean isEmpty()
isEmpty in interface JsonObjectpublic <T> List<T> getAsList(String name, Class<T> type)
getAsList in interface JsonObject@Nullable public String getAsString(String name)
getAsString in interface JsonObject@Nullable public java.time.Instant getAsInstant(String name)
getAsInstant in interface JsonObject@Nullable public JsonObject getJsonObject(String name)
getJsonObject in interface JsonObjectpublic List<JsonObject> getJsonObjects(String name)
getJsonObjects in interface JsonObjectpublic Map<String,String> getKeyValueMap()
getKeyValueMap in interface JsonObjectpublic String asJsonString()
asJsonString in interface JsonObjectCopyright © 2020. All rights reserved.