svvitch
digital signage player
BaseRequestHandler Class Reference

HTTPリクエストハンドラの基本クラス. More...

#include <HTTPServerBase.h>

Inheritance diagram for BaseRequestHandler:
Collaboration diagram for BaseRequestHandler:

List of all members.

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

Detailed Description

HTTPリクエストハンドラの基本クラス.

Definition at line 59 of file HTTPServerBase.h.


Constructor & Destructor Documentation

コンストラクタ

Definition at line 80 of file HTTPServerBase.cpp.


Member Function Documentation

void BaseRequestHandler::doRequest ( ) [protected, virtual]

リクエスト処理.

handleRequest()から呼ばれますのでサブクラスで実装します。

Reimplemented in SwitchRequestHandler.

Definition at line 116 of file HTTPServerBase.cpp.

Here is the caller graph for this function:

HTMLForm & BaseRequestHandler::form ( ) [protected]

フォーム

Definition at line 99 of file HTTPServerBase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BaseRequestHandler::handleRequest ( HTTPServerRequest &  requesr,
HTTPServerResponse &  response 
)

リクエスト処理

Definition at line 107 of file HTTPServerBase.cpp.

Here is the call graph for this function:

HTTPServerRequest & BaseRequestHandler::request ( ) [inline, protected]

リクエスト

Definition at line 90 of file HTTPServerBase.cpp.

Here is the caller graph for this function:

HTTPServerResponse & BaseRequestHandler::response ( ) [inline, protected]

レスポンス

Definition at line 95 of file HTTPServerBase.cpp.

Here is the caller graph for this function:

bool BaseRequestHandler::sendFile ( Path &  path) [protected]

クライアントにファイルを送信します

Definition at line 119 of file HTTPServerBase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BaseRequestHandler::sendJSONP ( const string &  functionName,
const map< string, string > &  json 
) [protected]

mapをJSONP形式で送信します

Definition at line 174 of file HTTPServerBase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BaseRequestHandler::sendResponse ( HTTPResponse::HTTPStatus  status,
const string &  message 
) [protected]

レスポンスを送信します

Definition at line 210 of file HTTPServerBase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BaseRequestHandler::writeResult ( const int  code,
const string &  description 
) [protected]

結果を出力します

Definition at line 192 of file HTTPServerBase.cpp.

Here is the call graph for this function:

BaseRequestHandler::‾BaseRequestHandler ( ) [virtual]

デストラクタ

Definition at line 85 of file HTTPServerBase.cpp.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines