public class MetadataCallback extends AbstractCallback implements DerivableCallback
When serialized as JSON in an authenticate response, the value object will be the value of a single
data output value, so for a value of { "foo": "bar" }, this would be output as:
{
"authId": "...",
"callbacks": [
// ...
{
"type": "MetadataCallback",
"output": [
{
"name": "data",
"value": {
"foo": "bar"
}
}
]
}
]
}
_id, content, VALUE| Constructor and Description |
|---|
MetadataCallback() |
MetadataCallback(org.json.JSONObject jsonObject,
int index) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends Callback> |
getDerivedCallback()
Retrieve the derived callback class, return null if no derive callback found.
|
java.lang.String |
getType()
Return the type of the Callback, the type name should align with the Callback type returned
from AM
|
org.json.JSONObject |
getValue() |
protected void |
setAttribute(java.lang.String name,
java.lang.Object value) |
get_id, getContent, getContentAsJson, getInputValue, getInputValue, getName, setContent, setValue, setValuepublic MetadataCallback(org.json.JSONObject jsonObject,
int index)
public MetadataCallback()
public org.json.JSONObject getValue()
protected void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in class AbstractCallbackpublic java.lang.String getType()
Callbackpublic java.lang.Class<? extends Callback> getDerivedCallback()
DerivableCallbackgetDerivedCallback in interface DerivableCallback