new SessionHandlerProviderByFile(file, optionsopt)
Provides a SessionHandler from a single file
SessionHandler will be loaded synchronously as there is no way to determine when a SessionHandler is required asynchronously
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
file |
String | The file that represnts an intent | |||||||||||
options |
Object |
<optional> |
Options
Properties
|
- Implements:
- Source:
- See:
Methods
getEndSessionHandlers() → {Array.Filter}
Returns all the post items (items that implement executePost())
Returns:
Array of all the loaded post items
- Type
- Array.Filter
getStartSessionHandlers() → {Array.Filter}
Returns all the pre items (items that implement executePre())
Returns:
Array of all the loaded pre items
- Type
- Array.Filter
processItem(items, itemId, fileName, options)
Uses node.js require to load the file and register it with the provider system
Parameters:
Name | Type | Description |
---|---|---|
items |
Map | Map of the items being processed |
itemId |
String | The Id of the item to process |
fileName |
String | The name of the file being processed |
options |
Object | Any options that are being passed to the ItemProcessor (can be null) |
- Implements:
- Source:
processItems(items, fileName, options)
Uses node.js require to load the file and register it with the provider system
Parameters:
Name | Type | Description |
---|---|---|
items |
Map | Map of the items being processed |
fileName |
String | The name of the file being processed |
options |
Object | Any options that are being passed to the ItemProcessor (can be null) |
- Implements:
- Source: