core / pragma.session / DefaultSessionPlugin /

DefaultSessionPlugin #

class DefaultSessionPlugin(service: Service, contentDataNodeService: ContentDataNodeService, logger: Logger) : SessionPlugin, ConfigurablePlugin<DefaultSessionPluginConfig>

This plugin accepts a configurable number of entries, with a limit on the size of the keys and values.

Constructors #

DefaultSessionPlugin

fun DefaultSessionPlugin(service: Service, contentDataNodeService: ContentDataNodeService)

DefaultSessionPlugin

fun DefaultSessionPlugin(service: Service, contentDataNodeService: ContentDataNodeService, logger: Logger)

Functions #

NameSummary

validateBaggage

open override fun validateBaggage(current: Map<String, String>, requestData: Map<String, String>): MutableMap<String, String>

This method enforces a configurable number of entries, with a limit on the size of the keys and values. Entries that fail to meet the size constraints will be ignored. If the number of added entries exceeds the entry limit, the operation will fail and the map won’t be modified.