Class: IntentHandlerFilter

IntentHandlerFilter

new IntentHandlerFilter(intentHandlerManager)

Wrapper for IntentHandlerManager that works as a Filter and Provider as everything in SkillVC is treated as a filter in terms of registered execution (at a high level). The use of a wrapper (and existence of a separate IntentHandlerManager) allows for the use of SkillVC as a piecemail system where on parts of the overall architecture could be used by a skill
Parameters:
Name Type Description
intentHandlerManager IntentHandlerManager The IntentHandlerManager to wrap
Implements:
Source:
See:
  • IntentHanderManager

Methods

executePre(event, context, svContext) → {Promise}

Executes the intentHandlerManager with the passed in svContext, wraps the lambda context with a `ContextWrapper` so that it can intercept the `succeed()` and `fail()` calls and then proceed with the filter chain via FilterChainExecutor~filterChainCallback
Parameters:
Name Type Description
event Object The event for the skill (from lambda)
context OBject The context for the skill (from lambda)
svContext SVContext The context of the execution
Implements:
Source:
Returns:
The `Promise` that can be used to wait until this completes
Type
Promise

getName() → {String}

Returns the name of the filter. If not set, SkillVC will attempt to determine one for you and add the function to your object
Source:
Returns:
The name of the filter
Type
String