WebFramework v3.0.12
Web framework for C++.
Loading...
Searching...
No Matches
framework::BaseStatefulExecutor Class Reference

Base class for executors with dynamically changes states. More...

#include <BaseStatefulExecutor.h>

Inheritance diagram for framework::BaseStatefulExecutor:
framework::BaseExecutor

Public Member Functions

virtual executorType getType () const final override
 Get executor type.
 
virtual void destroy () override
 
- Public Member Functions inherited from framework::BaseExecutor
virtual void init (const utility::JSONSettingsParser::ExecutorSettings &settings)
 Initializing executor before use.
 
virtual void doPost (HTTPRequest &request, HTTPResponse &response)
 Process POST request.
 
virtual void doGet (HTTPRequest &request, HTTPResponse &response)
 Process GET request.
 
virtual void doHead (HTTPRequest &request, HTTPResponse &response)
 Process HEAD request.
 
virtual void doPut (HTTPRequest &request, HTTPResponse &response)
 Process PUT request.
 
virtual void doDelete (HTTPRequest &request, HTTPResponse &response)
 Process DELETE request.
 
virtual void doPatch (HTTPRequest &request, HTTPResponse &response)
 Process PATCH request.
 
virtual void doOptions (HTTPRequest &request, HTTPResponse &response)
 Process OPTIONS request.
 
virtual void doTrace (HTTPRequest &request, HTTPResponse &response)
 Process TRACE request.
 
virtual void doConnect (HTTPRequest &request, HTTPResponse &response)
 Process CONNECT request.
 

Additional Inherited Members

- Public Types inherited from framework::BaseExecutor
enum class  executorType {
  none , stateful , stateless , heavyOperationStateful ,
  heavyOperationStateless
}
 

Detailed Description

Base class for executors with dynamically changes states.

This type of executors creating dynamically for each client

Client can change states during connection, after disconnect destroy method called

Definition at line 12 of file BaseStatefulExecutor.h.

Member Function Documentation

◆ destroy()

void framework::BaseStatefulExecutor::destroy ( )
overridevirtual

Destroy and unload executor

Executors inherited from BaseStatelessExecutor no need this method

Implements framework::BaseExecutor.

Definition at line 12 of file BaseStatefulExecutor.cpp.

◆ getType()

BaseExecutor::executorType framework::BaseStatefulExecutor::getType ( ) const
finaloverridevirtual

Get executor type.

Returns
executorType::stateful

Implements framework::BaseExecutor.

Definition at line 7 of file BaseStatefulExecutor.cpp.


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