#include <ulxr_http_server.h>
Inheritance diagram for ulxr::hidden::MethodHandlerWrapper< T >:
Public Types | |
typedef bool(T::*) | PMF (HttpProtocol *prot, const CppString &method, const CppString &resource, const Cpp8BitString &conn_data) |
Pointer to member function to handle a http request. | |
Public Member Functions | |
virtual | ~MethodHandlerWrapper () |
Destroy method handler wrapper. | |
virtual bool | handle (HttpProtocol *prot, const CppString &method, const CppString &resource, const Cpp8BitString &conn_data) const |
Handle a chunk of received data. | |
MethodHandlerWrapper (T *o, PMF a) | |
Construct a handler wrapper. | |
Private Attributes | |
T * | obj |
PMF | adr |
Definition at line 425 of file ulxr_http_server.h.
typedef bool(T::*) ulxr::hidden::MethodHandlerWrapper< T >::PMF(HttpProtocol *prot, const CppString &method, const CppString &resource, const Cpp8BitString &conn_data) |
Pointer to member function to handle a http request.
prot | pointer to the according server | |
method | the method in use | |
resource | name of the resource | |
conn_data | already received chunk of the message body. Needed for the methods PUT or POST |
Definition at line 437 of file ulxr_http_server.h.
virtual ulxr::hidden::MethodHandlerWrapper< T >::~MethodHandlerWrapper | ( | ) | [inline, virtual] |
ulxr::hidden::MethodHandlerWrapper< T >::MethodHandlerWrapper | ( | T * | o, | |
PMF | a | |||
) | [inline] |
Construct a handler wrapper.
o | handling object | |
a | desired method in this object |
Definition at line 470 of file ulxr_http_server.h.
virtual bool ulxr::hidden::MethodHandlerWrapper< T >::handle | ( | HttpProtocol * | prot, | |
const CppString & | method, | |||
const CppString & | resource, | |||
const Cpp8BitString & | conn_data | |||
) | const [inline, virtual] |
Handle a chunk of received data.
prot | pointer to the according server | |
method | the method in use | |
resource | name of the resource | |
conn_data | already received chunk of the message body. Needed for the methods PUT or POST |
Implements ulxr::hidden::MethodHandlerWrapperBase.
Definition at line 456 of file ulxr_http_server.h.
References ulxr::hidden::MethodHandlerWrapper< T >::adr, and ulxr::hidden::MethodHandlerWrapper< T >::obj.
T* ulxr::hidden::MethodHandlerWrapper< T >::obj [private] |
Definition at line 476 of file ulxr_http_server.h.
Referenced by ulxr::hidden::MethodHandlerWrapper< T >::handle().
PMF ulxr::hidden::MethodHandlerWrapper< T >::adr [private] |
Definition at line 477 of file ulxr_http_server.h.
Referenced by ulxr::hidden::MethodHandlerWrapper< T >::handle().