Class: Response

Gitana. Response

Gitana Response that wraps a response document from the Gitana server.

new Response(object)

Parameters:
Name Type Description
object Object

json response object

Source:

Methods

getId() → {String}

Gets the id ("_doc") field of the response (if one is available).

Source:
Returns:

id

Type
String

isDataDocument() → {Boolean}

Indicates whether this response is a Data Document.

Source:
Returns:

whether this is a data document

Type
Boolean

isError() → {Boolean}

Indicates whetehr the response is in an error state.

Source:
Returns:

whether the response is in an error state

Type
Boolean

isListDocument() → {Boolean}

Indicates whether this response is a List Document.

Source:
Returns:

whether this is a list document

Type
Boolean

isOk() → {Boolean}

Indicates whether the response is "ok".

Source:
Returns:

whether the response is "ok"

Type
Boolean

isStatusDocument() → {Boolean}

Indicates whether this response is a Status Document.

Source:
Returns:

whether this is a status document

Type
Boolean