Home Reference Source Test
import {ExecuteMessageBody} from 'service-framework/src/message-factory/MessageBody.js'
public class | source

ExecuteMessageBody

Extends:

RethinkObjectMessageBody → ExecuteMessageBody

Class representation of the ExecuteMessageBoday data Object. Contains the name of method to be invoked and an array and an Array of objects to be passed as parameters to the defined method. This is compliant with JSON-RPC Spec.

Constructor Summary

Public Constructor
public

constructor(idToken: Identity.JWT, accessToken: Identity.JWT, resource: URL.URL, schema: URL.HypertyCatalogueURL, assertedIdentity: Identity.Identity, message: Message)

Constructor to create the object

Member Summary

Public Members
public

method: *

public

params: *

Inherited Summary

From class RethinkObject
public

validate(schema: *): boolean

Validates this RethinkObject against the provided schema.

From class MessageBody
public
public
public

idToken: *

public
public

schema: *

public

via: *

public

addVia(token: Identity.JWT): MessageBody

Adds a via URL to the given message body.

Public Constructors

public constructor(idToken: Identity.JWT, accessToken: Identity.JWT, resource: URL.URL, schema: URL.HypertyCatalogueURL, assertedIdentity: Identity.Identity, message: Message) source

Constructor to create the object

Override:

MessageBody#constructor

Params:

NameTypeAttributeDescription
idToken Identity.JWT
accessToken Identity.JWT
resource URL.URL

URL of the object

schema URL.HypertyCatalogueURL

URL of the Data object schema stored in the Catalogue

assertedIdentity Identity.Identity

AssertedIdentity is compliant with User Identity Data Model

message Message

Message to be forwarded

Public Members

public method: * source

public params: * source