new Response(object)
Parameters:
Name | Type | Description |
---|---|---|
object |
Object | json response object |
- Source:
Methods
-
getId()
-
Gets the id ("_doc") field of the response (if one is available).
- Source:
Returns:
id
- Type
- String
-
isDataDocument()
-
Indicates whether this response is a Data Document.
- Source:
Returns:
whether this is a data document
- Type
- Boolean
-
isError()
-
Indicates whetehr the response is in an error state.
- Source:
Returns:
whether the response is in an error state
- Type
- Boolean
-
isListDocument()
-
Indicates whether this response is a List Document.
- Source:
Returns:
whether this is a list document
- Type
- Boolean
-
isOk()
-
Indicates whether the response is "ok".
- Source:
Returns:
whether the response is "ok"
- Type
- Boolean
-
isStatusDocument()
-
Indicates whether this response is a Status Document.
- Source:
Returns:
whether this is a status document
- Type
- Boolean