Webserv
|
#include <DirectiveHandler.hpp>
Public Member Functions | |
void | process (ServerBlock &block, const std::string &key, const StringVector &args) |
void | process (ServerBlock &block, DirectiveMap const &map) |
void | process (LocationBlock &block, const std::string &key, const StringVector &args) |
void | process (LocationBlock &block, DirectiveMap const &map) |
Static Public Member Functions | |
static DirectiveHandler & | getInstance () |
Private Types | |
typedef void(DirectiveHandler::* | GenericHandler) (Block &, const StringVector &) |
typedef void(DirectiveHandler::* | ServerHandler) (ServerBlock &, const StringVector &) |
typedef void(DirectiveHandler::* | LocationHandler) (LocationBlock &, const StringVector &) |
typedef std::map< std::string, GenericHandler > | GenericHandlerMap |
typedef std::map< std::string, ServerHandler > | ServerHandlerMap |
typedef std::map< std::string, LocationHandler > | LocationHandlerMap |
Private Member Functions | |
void | handleListen (ServerBlock &server, const StringVector &args) |
void | handleRoot (Block &block, const StringVector &args) |
DirectiveHandler () | |
~DirectiveHandler () | |
DirectiveHandler (const DirectiveHandler &) | |
DirectiveHandler & | operator= (const DirectiveHandler &) |
Private Attributes | |
GenericHandlerMap | genericHandlers_ |
ServerHandlerMap | serverHandlers_ |
LocationHandlerMap | locationHandlers_ |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
|
private |
|
private |
|
private |
void config::DirectiveHandler::process | ( | LocationBlock & | block, |
const std::string & | key, | ||
const StringVector & | args ) |
void config::DirectiveHandler::process | ( | LocationBlock & | block, |
DirectiveMap const & | map ) |
void config::DirectiveHandler::process | ( | ServerBlock & | block, |
const std::string & | key, | ||
const StringVector & | args ) |
void config::DirectiveHandler::process | ( | ServerBlock & | block, |
DirectiveMap const & | map ) |
|
private |
|
private |
|
private |