Property | Type | Description | |
---|---|---|---|
$sessionMarshaller | AppserverIo\Appserver\ServletEngine\SessionMarshallerInterface | The session marshaller instance. | |
$sessionSettings | AppserverIo\Appserver\ServletEngine\SessionSettingsInterface | The settings for the session handling. |
Method | Description | |
---|---|---|
__construct ( string $sessionMarshallerType = FilesystemSessionHandler::DEFAULT_SESSION_MARSHALLER_TYPE ) | Initializes the session handler with the configured params. | |
getSessionMarshaller ( ) : AppserverIo\Appserver\ServletEngine\SessionMarshallerInterface | Returns the session marshaller. | |
getSessionSettings ( ) : AppserverIo\Appserver\ServletEngine\SessionSettingsInterface | Returns the session settings. | |
injectSessionMarshaller ( AppserverIo\Appserver\ServletEngine\SessionMarshallerInterface $sessionMarshaller ) : void | Injects the session marshaller. | |
injectSessionSettings ( AppserverIo\Appserver\ServletEngine\SessionSettingsInterface $sessionSettings ) : void | Injects the session settings. |
Method | Description | |
---|---|---|
marshall ( AppserverIo\Psr\Servlet\ServletSessionInterface $servletSession ) : string | Transforms the passed session instance into a JSON encoded string. If the data contains objects, each of them will be serialized before store them to the persistence layer. | |
unmarshall ( string $marshalled ) : AppserverIo\Psr\Servlet\ServletSessionInterface | Initializes the session instance from the passed JSON string. If the encoded data contains objects, they will be unserialized before reattached to the session instance. |
public __construct ( string $sessionMarshallerType = FilesystemSessionHandler::DEFAULT_SESSION_MARSHALLER_TYPE ) | ||
$sessionMarshallerType | string | The session marshaller type to use |
public getSessionMarshaller ( ) : AppserverIo\Appserver\ServletEngine\SessionMarshallerInterface | ||
return | AppserverIo\Appserver\ServletEngine\SessionMarshallerInterface | The session marshaller |
public getSessionSettings ( ) : AppserverIo\Appserver\ServletEngine\SessionSettingsInterface | ||
return | AppserverIo\Appserver\ServletEngine\SessionSettingsInterface | The session settings |
public injectSessionMarshaller ( AppserverIo\Appserver\ServletEngine\SessionMarshallerInterface $sessionMarshaller ) : void | ||
$sessionMarshaller | AppserverIo\Appserver\ServletEngine\SessionMarshallerInterface | The session marshaller instance |
return | void |
public injectSessionSettings ( AppserverIo\Appserver\ServletEngine\SessionSettingsInterface $sessionSettings ) : void | ||
$sessionSettings | AppserverIo\Appserver\ServletEngine\SessionSettingsInterface | Settings for the session handling |
return | void |
protected unmarshall ( string $marshalled ) : AppserverIo\Psr\Servlet\ServletSessionInterface | ||
$marshalled | string | The marshaled session representation |
return | AppserverIo\Psr\Servlet\ServletSessionInterface | The un-marshaled servlet session instance |
protected SessionMarshallerInterface,AppserverIo\Appserver\ServletEngine $sessionMarshaller | ||
return | AppserverIo\Appserver\ServletEngine\SessionMarshallerInterface |