Class: Response

Response

new Response(id, json, formatterManagaeropt)

Represents a response
Parameters:
Name Type Attributes Description
id String The Id of the response
json JSON The JSON of the response
formatterManagaer FormatterManager <optional>
The formatterManager to use on the response
Source:

Methods

getFormatterManager() → {FormatterManager}

Returns the FormatterManager used by this response. Can be null
Source:
Returns:
The FormatterManager
Type
FormatterManager

getId() → {String}

Returns the Id of the response
Source:
Returns:
The Id of the response
Type
String

getRawJSON() → {JSON}

Returns the JSON of the response, with no formatting applied
Source:
Returns:
The JSON of the response
Type
JSON

render(valuesMap) → {String}

Renders a response
Parameters:
Name Type Description
valuesMap Object.<String, Object> The values to use when formatting the response
Source:
Returns:
The rendered string
Type
String