import {MessageBody} from 'service-framework/src/message-factory/MessageBody.js'
MessageBody
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(idToken: Identity.JWT, accessToken: Identity.JWT, resource: URL.URL, schema: URL.HypertyCatalogueURL, assertedIdentity: Identity.Identity) |
Member Summary
Public Members | ||
public |
accessToken: * |
|
public |
|
|
public |
idToken: * |
|
public |
resource: * |
|
public |
schema: * |
|
public |
via: * |
Method Summary
Public Methods | ||
public |
addVia(token: Identity.JWT): MessageBody Adds a via URL to the given message body. |
Inherited Summary
From class RethinkObject | ||
public |
Validates this RethinkObject against the provided schema. |
Public Constructors
public constructor(idToken: Identity.JWT, accessToken: Identity.JWT, resource: URL.URL, schema: URL.HypertyCatalogueURL, assertedIdentity: Identity.Identity) source
Params:
Name | Type | Attribute | Description |
idToken | Identity.JWT | token for Identity assertion purpose |
|
accessToken | Identity.JWT | token for access control |
|
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 |
Public Members
public accessToken: * source
public assertedIdentity: * source
public idToken: * source
public resource: * source
public schema: * source
public via: * source
Public Methods
public addVia(token: Identity.JWT): MessageBody source
Adds a via URL to the given message body. The "MessageBody.via" attribute contains a list of all Protostub addresses (Protostub) that the message has been passed through. It is used to prevent infinite cycles in the Hyperty Messaging Framework.
Params:
Name | Type | Attribute | Description |
token | Identity.JWT | identity token to include in the message |