public interface Data
| Modifier and Type | Method and Description |
|---|---|
boolean |
commit()
Commits the data operation wrapped by this request handler.
|
boolean |
commit(java.lang.Object value)
Commits the data operation using the given value as request body.
|
DataSnapshot |
snapshot()
Creates a data snapshot.
|
<T> T |
storedValue()
Retrieves a snapshot of the existing data.
|
<T> T |
storedValue(java.lang.Class<T> type)
Retrieves a snapshot of the existing data and parses into the target type.
|
<T> T |
value()
Parses the body depending on content-type.
|
<T> T |
value(java.lang.Class<T> type)
Parses the body depending on content-type into the target type.
|
boolean commit()
true if operation executed successfully,
false otherwise.boolean commit(java.lang.Object value)
commit()DataSnapshot snapshot()
<T> T storedValue()
<T> T storedValue(java.lang.Class<T> type)
storedValue()<T> T value()
Request.bodyValue() if data not committed,
Response.bodyValue() otherwise.
If body is not set, returns null.
If body can not be parsed, throws an Exception.commit()<T> T value(java.lang.Class<T> type)
value()