svvitch
digital signage player
|
HTTPリクエストハンドラの基本クラス. More...
#include <HTTPServerBase.h>
Public Member Functions | |
BaseRequestHandler () | |
コンストラクタ | |
virtual | ‾BaseRequestHandler () |
デストラクタ | |
void | handleRequest (HTTPServerRequest &requesr, HTTPServerResponse &response) |
リクエスト処理 | |
Protected Member Functions | |
HTTPServerRequest & | request () |
リクエスト | |
HTTPServerResponse & | response () |
レスポンス | |
HTMLForm & | form () |
フォーム | |
virtual void | doRequest () |
リクエスト処理. | |
bool | sendFile (Path &path) |
クライアントにファイルを送信します | |
void | sendJSONP (const string &functionName, const map< string, string > &json) |
mapをJSONP形式で送信します | |
void | writeResult (const int code, const string &description) |
結果を出力します | |
void | sendResponse (HTTPResponse::HTTPStatus status, const string &message) |
レスポンスを送信します | |
Protected Attributes | |
Poco::Logger & | _log |
Private Attributes | |
HTTPServerRequest * | _request |
HTTPServerResponse * | _response |
HTMLForm * | _form |
HTTPリクエストハンドラの基本クラス.
Definition at line 59 of file HTTPServerBase.h.
コンストラクタ
Definition at line 80 of file HTTPServerBase.cpp.
void BaseRequestHandler::doRequest | ( | ) | [protected, virtual] |
リクエスト処理.
handleRequest()から呼ばれますのでサブクラスで実装します。
Reimplemented in SwitchRequestHandler.
Definition at line 116 of file HTTPServerBase.cpp.
HTMLForm & BaseRequestHandler::form | ( | ) | [protected] |
フォーム
Definition at line 99 of file HTTPServerBase.cpp.
void BaseRequestHandler::handleRequest | ( | HTTPServerRequest & | requesr, |
HTTPServerResponse & | response | ||
) |
リクエスト処理
Definition at line 107 of file HTTPServerBase.cpp.
HTTPServerRequest & BaseRequestHandler::request | ( | ) | [inline, protected] |
HTTPServerResponse & BaseRequestHandler::response | ( | ) | [inline, protected] |
bool BaseRequestHandler::sendFile | ( | Path & | path | ) | [protected] |
クライアントにファイルを送信します
Definition at line 119 of file HTTPServerBase.cpp.
void BaseRequestHandler::sendJSONP | ( | const string & | functionName, |
const map< string, string > & | json | ||
) | [protected] |
mapをJSONP形式で送信します
Definition at line 174 of file HTTPServerBase.cpp.
void BaseRequestHandler::sendResponse | ( | HTTPResponse::HTTPStatus | status, |
const string & | message | ||
) | [protected] |
レスポンスを送信します
Definition at line 210 of file HTTPServerBase.cpp.
void BaseRequestHandler::writeResult | ( | const int | code, |
const string & | description | ||
) | [protected] |
結果を出力します
Definition at line 192 of file HTTPServerBase.cpp.
BaseRequestHandler::‾BaseRequestHandler | ( | ) | [virtual] |
デストラクタ
Definition at line 85 of file HTTPServerBase.cpp.
HTMLForm* BaseRequestHandler::_form [private] |
Definition at line 63 of file HTTPServerBase.h.
Poco::Logger& BaseRequestHandler::_log [protected] |
Definition at line 66 of file HTTPServerBase.h.
HTTPServerRequest* BaseRequestHandler::_request [private] |
Definition at line 61 of file HTTPServerBase.h.
HTTPServerResponse* BaseRequestHandler::_response [private] |
Definition at line 62 of file HTTPServerBase.h.