Class: SessionHandlerProviderByDirectory

SessionHandlerProviderByDirectory

new SessionHandlerProviderByDirectory(directory, optionsopt)

Provides Session Handlers by loading all of the files in a directory as Session Handlers items are loaded synchronously as there is no way to determine when a filter is required asynchronously
Parameters:
Name Type Attributes Description
directory String The directory to read from
options Object <optional>
Options for the was the directory is process
Properties
Name Type Attributes Default Description
fileEncoding String <optional>
utf8 The encoding of the files.
filenameFormatter FileNameFormatter <optional>
DefaultJSFilenameFormatter The FilenameFormmatter to use to parse the filenames to determine name as well as how to format the id to become a filename. This object will only load files that match the formatters isValid() method
Implements:
Source:
See:

Methods

getEndSessionHandlers() → {Array.Filter}

Returns all the post items (items that implement executePost())
Source:
Returns:
Array of all the loaded post items
Type
Array.Filter

getStartSessionHandlers() → {Array.Filter}

Returns all the pre items (items that implement executePre())
Source:
Returns:
Array of all the loaded pre items
Type
Array.Filter

processItem(items, itemId, fileName, options)

Processes the specific item and returns the result
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)
Source:

processItems(items, fileName, options)

Processes multiple items at once
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)
Source: