T
- Type of the element being created.R
- Type of the raw response.public interface Result<T,R>
Result
defines what
values are returned by its methods.Modifier and Type | Method and Description |
---|---|
T |
getElement()
Get the element associated with the request.
|
java.lang.String |
getId()
Get the object identifier associated with the request.
|
R |
getRawResult()
Get the raw result from the request.
|
boolean |
isOk()
Was the request successful.
|
java.lang.String getId()
T getElement() throws java.io.IOException
java.io.IOException
- Error communicating with REST server.R getRawResult()
Result
the contents of a raw
result are not guaranteed to be stable
across releases.boolean isOk()
true
if the request was successful, false
otherwise.