new ResponseProviderByMap(map, options)
Uses the passed in map to provide responses. This provider will still use the ResponseBuilder to
build the response from the passed in JSON.
This allows the most control of SkillVC's loading of responses however it requires the
most knowledge of how the system works. This should only be used if you know what you
are doing and want the utmost control.
Parameters:
Name |
Type |
Description |
map |
Map
|
The object structure of the raw responses to use. |
options |
Object.<String, Object>
|
Options for processing. See AbstractProviderByMap
Properties
Name |
Type |
Attributes |
Default |
Description |
responseBuilder |
ResponseBuilder
|
<optional>
|
DefaultResponseBuilder
|
The ResponseBuilder to use when building responses |
|
- Implements:
- Source:
- See:
-
Example
{
'responseName' : { json for response },
'anotherResponseName' : { json for response },
etc...
}
Methods
processItem(items, itemId, map, options)
Since there is no processing required, it just returns the item that was passed in
Parameters:
Name |
Type |
Description |
items |
Map
|
Map of the items being processed |
itemId |
String
|
The Id of the item to process |
map |
Object
|
The map being processed |
options |
Object
|
Any options that are being passed to the ItemProcessor (can be null) |
- Source:
processItems(items, map, options)
Since there is no processing required, it just returns the map that was passed in
Parameters:
Name |
Type |
Description |
items |
Map
|
Map of the items being processed |
map |
Object
|
The map being processed |
options |
Object
|
Any options that are being passed to the ItemProcessor (can be null) |
- Source: