Pol  Revision:cb584c9
Pol::Module::HttpExecutorModule Class Reference

#include <httpmod.h>

+ Inheritance diagram for Pol::Module::HttpExecutorModule:

Public Types

typedef std::map< std::string, std::string, Clib::ci_cmp_predQueryParamMap
 

Public Member Functions

 HttpExecutorModule (Bscript::Executor &exec, Clib::Socket &isck)
 
Bscript::BObjectImpmf_QueryIP ()
 
Bscript::BObjectImpmf_QueryParam ()
 
Bscript::BObjectImpmf_WriteHtml ()
 
Bscript::BObjectImpmf_WriteHtmlRaw ()
 
void read_query_ip ()
 
void read_query_string (const std::string &query_string)
 
- Public Member Functions inherited from Pol::Bscript::ExecutorModule
virtual ~ExecutorModule ()=default
 
BApplicObjBasegetApplicObjParam (unsigned param, const BApplicObjType *object_type)
 
void * getApplicPtrParam (unsigned param, const BApplicObjType *pointer_type)
 
bool getObjArrayParam (unsigned param, ObjArray *&pobjarr)
 
bool getParam (unsigned param, int &value)
 
bool getParam (unsigned param, int &value, int maxval)
 
bool getParam (unsigned param, int &value, int minval, int maxval)
 
bool getParam (unsigned param, unsigned &value)
 
bool getParam (unsigned param, short &value)
 
bool getParam (unsigned param, short &value, short maxval)
 
bool getParam (unsigned param, short &value, short minval, short maxval)
 
bool getParam (unsigned param, unsigned short &value)
 
bool getParam (unsigned param, unsigned short &value, unsigned short maxval)
 
bool getParam (unsigned param, unsigned short &value, unsigned short minval, unsigned short maxval)
 
BObjectImpgetParamImp (unsigned param)
 
BObjectImpgetParamImp (unsigned param, BObjectImp::BObjectType type)
 
bool getParamImp (unsigned param, BObjectImp *&imp)
 
bool getRealParam (unsigned param, double &value)
 
const StringgetStringParam (unsigned param)
 
bool getStringParam (unsigned param, const String *&pstr)
 
const std::string & scriptname () const
 

Public Attributes

int continuing_offset
 
QueryParamMap params_
 
std::string query_ip_
 
Clib::Socket sck_
 
Core::UOExecutoruoexec
 
- Public Attributes inherited from Pol::Bscript::ExecutorModule
Executorexec
 

Additional Inherited Members

- Protected Member Functions inherited from Pol::Bscript::TmplExecutorModule< HttpExecutorModule >
 TmplExecutorModule (const char *modname, Executor &exec)
 
virtual BObjectImpexecFunc (unsigned idx) POL_OVERRIDE
 
virtual int functionIndex (const std::string &funcname) POL_OVERRIDE
 
virtual std::string functionName (unsigned idx) POL_OVERRIDE
 
- Protected Member Functions inherited from Pol::Bscript::ExecutorModule
 ExecutorModule (const char *moduleName, Executor &iExec)
 
- Protected Attributes inherited from Pol::Bscript::ExecutorModule
boost_utils::function_name_flystring moduleName
 

Detailed Description

Definition at line 32 of file httpmod.h.

Member Typedef Documentation

typedef std::map<std::string, std::string, Clib::ci_cmp_pred> Pol::Module::HttpExecutorModule::QueryParamMap

Definition at line 48 of file httpmod.h.

Constructor & Destructor Documentation

Pol::Module::HttpExecutorModule::HttpExecutorModule ( Bscript::Executor exec,
Clib::Socket isck 
)

Definition at line 39 of file httpmod.cpp.

Member Function Documentation

BObjectImp * Pol::Module::HttpExecutorModule::mf_QueryIP ( )

Definition at line 159 of file httpmod.cpp.

References query_ip_.

Referenced by Pol::Bscript::TmplExecutorModule< T >::function_table().

BObjectImp * Pol::Module::HttpExecutorModule::mf_QueryParam ( )
void Pol::Module::HttpExecutorModule::read_query_ip ( )

Definition at line 200 of file httpmod.cpp.

References Pol::Clib::Socket::getpeername(), query_ip_, and sck_.

Referenced by Pol::Core::start_http_script().

void Pol::Module::HttpExecutorModule::read_query_string ( const std::string &  query_string)

Member Data Documentation

int Pol::Module::HttpExecutorModule::continuing_offset

Definition at line 50 of file httpmod.h.

Referenced by mf_WriteHtml(), and mf_WriteHtmlRaw().

QueryParamMap Pol::Module::HttpExecutorModule::params_

Definition at line 49 of file httpmod.h.

Referenced by mf_QueryParam(), and read_query_string().

std::string Pol::Module::HttpExecutorModule::query_ip_

Definition at line 52 of file httpmod.h.

Referenced by mf_QueryIP(), and read_query_ip().

Clib::Socket Pol::Module::HttpExecutorModule::sck_
Core::UOExecutor& Pol::Module::HttpExecutorModule::uoexec

Definition at line 51 of file httpmod.h.

Referenced by mf_WriteHtml(), and mf_WriteHtmlRaw().


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