#include <HTTPServlet.h>
Public Types | |
typedef RequestType | request_type |
typedef ResponseType | response_type |
typedef boost::shared_ptr < request_type > | request_ptr |
typedef boost::shared_ptr < response_type > | response_ptr |
Public Member Functions | |
virtual | ~HTTPServlet () |
virtual void | http_delete (const request_ptr &request, response_ptr &response) |
virtual void | http_get (const request_ptr &request, response_ptr &response) |
virtual void | http_head (const request_ptr &request, response_ptr &response) |
virtual void | http_options (const request_ptr &request, response_ptr &response) |
virtual void | http_post (const request_ptr &request, response_ptr &response) |
virtual void | http_put (const request_ptr &request, response_ptr &response) |
virtual void | http_trace (const request_ptr &request, response_ptr &response) |
Protected Types | |
typedef void(HTTPServlet::* | request_function_ptr )(const request_ptr &, response_ptr &) |
Static Protected Attributes | |
static const request_function_ptr | RequestMethodHandler [MethodNum] |
Detailed Description
template<typename RequestType = HTTPRequest, typename ResponseType = HTTPResponse>
class HTTPServlet< RequestType, ResponseType >
Definition at line 32 of file HTTPServlet.h.
Member Typedef Documentation
typedef void(HTTPServlet::* HTTPServlet< RequestType, ResponseType >::request_function_ptr)(const request_ptr &, response_ptr &) [protected] |
Definition at line 40 of file HTTPServlet.h.
typedef boost::shared_ptr<request_type> HTTPServlet< RequestType, ResponseType >::request_ptr |
Definition at line 36 of file HTTPServlet.h.
typedef RequestType HTTPServlet< RequestType, ResponseType >::request_type |
Definition at line 34 of file HTTPServlet.h.
typedef boost::shared_ptr<response_type> HTTPServlet< RequestType, ResponseType >::response_ptr |
Definition at line 37 of file HTTPServlet.h.
typedef ResponseType HTTPServlet< RequestType, ResponseType >::response_type |
Definition at line 35 of file HTTPServlet.h.
Constructor & Destructor Documentation
virtual HTTPServlet< RequestType, ResponseType >::~HTTPServlet | ( | ) | [inline, virtual] |
Definition at line 45 of file HTTPServlet.h.
Member Function Documentation
virtual void HTTPServlet< RequestType, ResponseType >::http_delete | ( | const request_ptr & | request, |
response_ptr & | response | ||
) | [inline, virtual] |
Definition at line 48 of file HTTPServlet.h.
References StatusMethodNotAllowed.
virtual void HTTPServlet< RequestType, ResponseType >::http_get | ( | const request_ptr & | request, |
response_ptr & | response | ||
) | [inline, virtual] |
Definition at line 53 of file HTTPServlet.h.
References StatusMethodNotAllowed.
virtual void HTTPServlet< RequestType, ResponseType >::http_head | ( | const request_ptr & | request, |
response_ptr & | response | ||
) | [inline, virtual] |
Definition at line 58 of file HTTPServlet.h.
References StatusMethodNotAllowed.
virtual void HTTPServlet< RequestType, ResponseType >::http_options | ( | const request_ptr & | request, |
response_ptr & | response | ||
) | [inline, virtual] |
Definition at line 63 of file HTTPServlet.h.
References StatusMethodNotAllowed.
virtual void HTTPServlet< RequestType, ResponseType >::http_post | ( | const request_ptr & | request, |
response_ptr & | response | ||
) | [inline, virtual] |
Definition at line 68 of file HTTPServlet.h.
References StatusMethodNotAllowed.
virtual void HTTPServlet< RequestType, ResponseType >::http_put | ( | const request_ptr & | request, |
response_ptr & | response | ||
) | [inline, virtual] |
Definition at line 73 of file HTTPServlet.h.
References StatusMethodNotAllowed.
virtual void HTTPServlet< RequestType, ResponseType >::http_trace | ( | const request_ptr & | request, |
response_ptr & | response | ||
) | [inline, virtual] |
Definition at line 78 of file HTTPServlet.h.
References StatusMethodNotAllowed.
Member Data Documentation
const HTTPServlet< RequestType, ResponseType >::request_function_ptr HTTPServlet< RequestType, ResponseType >::RequestMethodHandler [static, protected] |
{ &HTTPServlet::http_delete, &HTTPServlet::http_get, &HTTPServlet::http_head, &HTTPServlet::http_options, &HTTPServlet::http_post, &HTTPServlet::http_put, &HTTPServlet::http_trace }
Definition at line 42 of file HTTPServlet.h.
The documentation for this class was generated from the following file: