Granada  1.54.0
Structured layer on top of C++ REST SDK for building server applications in C++. Granada implements sessions, server side plug-in framework, C++ OAuth 2.0 server, data storage access, server script running, server browsing.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
granada::http::session::SessionFactory Class Reference

#include <session.h>

Inheritance diagram for granada::http::session::SessionFactory:
granada::http::session::MapSessionFactory granada::http::session::RedisSessionFactory

Public Member Functions

virtual std::unique_ptr
< granada::http::session::Session
Session_unique_ptr ()
 
virtual std::unique_ptr
< granada::http::session::Session
Session_unique_ptr (const web::http::http_request &request, web::http::http_response &response)
 
virtual std::unique_ptr
< granada::http::session::Session
Session_unique_ptr (const web::http::http_request &request)
 
virtual std::unique_ptr
< granada::http::session::Session
Session_unique_ptr (const std::string &token)
 

Detailed Description

Abstract class, checks a session. Session factory. Allows to have a unique point for checking and setting sessions. Used to create a new session if it does not exist or if it is timed out.

Member Function Documentation

virtual std::unique_ptr<granada::http::session::Session> granada::http::session::SessionFactory::Session_unique_ptr ( )
inlinevirtual

Checks if session is open / valid. Can be used in case we want to open a session in case it does not exist, or in case it is timed out.

Reimplemented in granada::http::session::MapSessionFactory, and granada::http::session::RedisSessionFactory.

virtual std::unique_ptr<granada::http::session::Session> granada::http::session::SessionFactory::Session_unique_ptr ( const web::http::http_request &  request,
web::http::http_response &  response 
)
inlinevirtual

Checks if session is open / valid. Can be used in case we want to open a session in case it does not exist, or in case it is timed out.

Parameters
requestHTTP request.
responseHTTP response.

Reimplemented in granada::http::session::MapSessionFactory, and granada::http::session::RedisSessionFactory.

virtual std::unique_ptr<granada::http::session::Session> granada::http::session::SessionFactory::Session_unique_ptr ( const web::http::http_request &  request)
inlinevirtual

Checks if session is open / valid. Can be used in case we want to open a session in case it does not exist, or in case it is timed out.

Parameters
requestHTTP request.

Reimplemented in granada::http::session::MapSessionFactory, and granada::http::session::RedisSessionFactory.

virtual std::unique_ptr<granada::http::session::Session> granada::http::session::SessionFactory::Session_unique_ptr ( const std::string &  token)
inlinevirtual

Checks if session is open / valid. Can be used in case we want to open a session in case it does not exist, or in case it is timed out.

Parameters
tokenSession token.

Reimplemented in granada::http::session::MapSessionFactory, and granada::http::session::RedisSessionFactory.


The documentation for this class was generated from the following file: