class CASL::SessionService

CASL API for sessions

Inheritance:


Public Methods

[more]virtual SessionContextWrapper createSession(const char* username, time_t nSecondsToExpire=0) = 0
create Session
[more]virtual SessionContextWrapper getSessionContext(SessionIdType id, const char* username) = 0
get SessionContext by id.
[more]virtual void releaseSession(SessionContextWrapper sessionContext) = 0
end session
[more]bool requireThread()

Public Members

[more]struct InvalidSessionId: public CASL::Exception
[more]struct SessionExpired: public CASL::Exception
[more]struct TooManySessions: public CASL::Exception
[more]struct UsernameMismatch: public CASL::Exception


Inherited from Service:

Public Methods

ovirtual void close()
ostd::ostream& debugs()
ovirtual ValueProxy doCommand(const char* command, Value* optParams)
ostd::ostream& errors()
ostd::ostream& fatals()
oGradSoft::Logger& getLogger()
ovirtual ValueProxy getProperty(const char* name)
oGradSoft::Thread::id_type getThreadId()
ostd::ostream& infos()
ovirtual void init(ServerContext*)
ovirtual const char* name() const
ovirtual void run()
ovirtual void setProperty(const char* name, const char* value)
ovoid waitRun()
ostd::ostream& warnings()

Protected Methods

oNamedValues& getProperties()


Documentation

CASL API for sessions
ostruct SessionExpired: public CASL::Exception

ostruct InvalidSessionId: public CASL::Exception

ostruct TooManySessions: public CASL::Exception

ostruct UsernameMismatch: public CASL::Exception

ovirtual SessionContextWrapper createSession(const char* username, time_t nSecondsToExpire=0) = 0
create Session

ovirtual SessionContextWrapper getSessionContext(SessionIdType id, const char* username) = 0
get SessionContext by id. throw SessionExpiredException or InvalidSessionId

ovirtual void releaseSession(SessionContextWrapper sessionContext) = 0
end session

obool requireThread()


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.