Response Object

Hierarchy

  • ResponseWrapper

Constructors

Properties

attributes: Map<any, any>

Map of Response attributes.

Example

Here's some example code to add Response attribute:

var responseObj = voltMX.getResponseObject();
responseObj.attributes['Attr1']='A1Val';
responseObj.update();
cookies: Map<any, string>

Map of Response Cookies.

Example

Here's some example code to add Response Cookie:

var responseObj = voltMX.getResponseObject();
responseObj.cookies['Cookie1']='C1Val';
responseObj.update();
deviceCookies: Map<any, string>

Map of Response Device Cookies.

Example

Here's some example code to add Response Device Cookie:

var responseObj = voltMX.getResponseObject();
responseObj.deviceCookies['Cookie1']='C1Val';
responseObj.update();
deviceHeaders: Map<any, any>

Map of Response Device Headers.

Example

Here's some example code to add Response Device Header:

var responseObj = voltMX.getResponseObject();
responseObj.deviceHeaders['Header1']='H1Val';
responseObj.update();
headers: Map<any, any>

Map of Response Headers.

Example

Here's some example code to add Response Header:

var responseObj = voltMX.getResponseObject();
responseObj.headers['Header1']='H1Val';
responseObj.update();

Methods

  • Get Map of Response Attributes

    Returns Map<any, any>

  • Get Map of Device Headers

    Returns Map<any, any>

  • Set Character Encoding in Response.

    Example

    Here's some example code to set Character Encoding in Response:

    var responseObj = voltMX.getResponseObject();
    resultObj.setCharsetEncoding('UTF-8');
    resultObj.update();

    Parameters

    • arg: any

    Returns void

  • Set HttpStatus in Response.

    Example

    Here's some example code to set HttpStatus Response:

    var responseObj = voltMX.getResponseObject();
    responseObj.setHttpStatus(400);
    responseObj.update();

    Parameters

    • arg: any

    Returns void

  • Returns void

Generated using TypeDoc