Savarese Software Research Corporation
HTTPServlet< RequestType, ResponseType > Class Template Reference

#include <HTTPServlet.h>

List of all members.

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

template<typename RequestType = HTTPRequest, typename ResponseType = HTTPResponse>
typedef void(HTTPServlet::* HTTPServlet< RequestType, ResponseType >::request_function_ptr)(const request_ptr &, response_ptr &) [protected]

Definition at line 40 of file HTTPServlet.h.

template<typename RequestType = HTTPRequest, typename ResponseType = HTTPResponse>
typedef boost::shared_ptr<request_type> HTTPServlet< RequestType, ResponseType >::request_ptr

Definition at line 36 of file HTTPServlet.h.

template<typename RequestType = HTTPRequest, typename ResponseType = HTTPResponse>
typedef RequestType HTTPServlet< RequestType, ResponseType >::request_type

Definition at line 34 of file HTTPServlet.h.

template<typename RequestType = HTTPRequest, typename ResponseType = HTTPResponse>
typedef boost::shared_ptr<response_type> HTTPServlet< RequestType, ResponseType >::response_ptr

Definition at line 37 of file HTTPServlet.h.

template<typename RequestType = HTTPRequest, typename ResponseType = HTTPResponse>
typedef ResponseType HTTPServlet< RequestType, ResponseType >::response_type

Definition at line 35 of file HTTPServlet.h.


Constructor & Destructor Documentation

template<typename RequestType = HTTPRequest, typename ResponseType = HTTPResponse>
virtual HTTPServlet< RequestType, ResponseType >::~HTTPServlet ( ) [inline, virtual]

Definition at line 45 of file HTTPServlet.h.


Member Function Documentation

template<typename RequestType = HTTPRequest, typename ResponseType = HTTPResponse>
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.

template<typename RequestType = HTTPRequest, typename ResponseType = HTTPResponse>
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.

template<typename RequestType = HTTPRequest, typename ResponseType = HTTPResponse>
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.

template<typename RequestType = HTTPRequest, typename ResponseType = HTTPResponse>
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.

template<typename RequestType = HTTPRequest, typename ResponseType = HTTPResponse>
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.

template<typename RequestType = HTTPRequest, typename ResponseType = HTTPResponse>
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.

template<typename RequestType = HTTPRequest, typename ResponseType = HTTPResponse>
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

template<typename RequestType = HTTPRequest, typename ResponseType = HTTPResponse>
const HTTPServlet< RequestType, ResponseType >::request_function_ptr HTTPServlet< RequestType, ResponseType >::RequestMethodHandler [static, protected]

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

Savarese Software Research Corporation
Copyright © 2006-2011 Savarese Software Research Corporation. All rights reserved.