Servlets are loaded via luaL_dofile. More...
#include <ServletRunner.h>
Public Types | |
typedef FCGIRequest | request_type |
typedef FCGIResponse | response_type |
typedef boost::shared_ptr < request_type > | request_ptr |
typedef boost::shared_ptr < response_type > | response_ptr |
Public Member Functions | |
ServletRunner (caller_type &caller, const ServletRunnerInitializer &initializer) SSRC_DECL_THROW(LoadError) | |
~ServletRunner () | |
void | process_fcgi_request (const fcgx_request_ptr &request) |
Detailed Description
Servlets are loaded via luaL_dofile.
The global functions http_get, http_post, etc. are invoked as appropriate if defined.
Definition at line 58 of file ServletRunner.h.
Member Typedef Documentation
typedef boost::shared_ptr<request_type> ServletRunner::request_ptr |
Definition at line 75 of file ServletRunner.h.
typedef FCGIRequest ServletRunner::request_type |
Definition at line 73 of file ServletRunner.h.
typedef boost::shared_ptr<response_type> ServletRunner::response_ptr |
Definition at line 76 of file ServletRunner.h.
typedef FCGIResponse ServletRunner::response_type |
Definition at line 74 of file ServletRunner.h.
Constructor & Destructor Documentation
ServletRunner::ServletRunner | ( | caller_type & | caller, |
const ServletRunnerInitializer & | initializer | ||
) |
Definition at line 29 of file ServletRunner.cc.
References _lua_state(), initializer, MethodNum, prepend_package_path(), and WSPR_SERVICE_TYPE.
Definition at line 49 of file ServletRunner.cc.
References _lua_state(), and MethodNum.
Member Function Documentation
void ServletRunner::process_fcgi_request | ( | const fcgx_request_ptr & | request | ) |
Definition at line 78 of file ServletRunner.cc.
References _lua_state(), MethodMax, NS_SSRC_WSPR_FCGI, pcall_nopop(), StatusInternalServerError, StatusMethodNotAllowed, and StatusMethodNotImplemented.
The documentation for this class was generated from the following files: