|
| BaseSession (const std::string sessionId=generateId()) |
|
std::string | getId () const override |
| Get the session id. More...
|
|
virtual | ~AbstractSession () |
| Destroy the AbstractSession.
|
|
virtual bool | has (const std::string &key) const =0 |
| Check to see if the provided key exists in the session data. More...
|
|
virtual void | put (const std::string &key, const std::string &value)=0 |
| Add (or replace) a key in the sesion data with the given value. More...
|
|
virtual std::string | get (const std::string &key, const std::string &defaultValue) const =0 |
| Get the session data for a given key, or a default value. More...
|
|
virtual std::string | get (const std::string &key) const =0 |
| Get the session data for a given key, or throw an exception. More...
|
|
virtual void | remove (const std::string &key)=0 |
| Remove a key / value pair. More...
|
|
virtual void | clear ()=0 |
| Remove all data from the session.
|
|
|
static std::string | generateId () |
| A utility function for generating unique session ids. More...
|
|
|
static const std::string | KEY_LAST_MODIFIED = "last_modified" |
|
|
std::string | _sessionId |
|
std::mutex | _mutex |
|
◆ generateId()
std::string ofx::HTTP::BaseSession::generateId |
( |
| ) |
|
|
static |
A utility function for generating unique session ids.
- Returns
- A unique session id string.
◆ getId()
std::string ofx::HTTP::BaseSession::getId |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: