ulxr::hidden::MethodHandlerWrapper< T > Class Template Reference

Internal helper class template, not intended for public use. More...

#include <ulxr_http_server.h>

Inheritance diagram for ulxr::hidden::MethodHandlerWrapper< T >:

Inheritance graph
[legend]
Collaboration diagram for ulxr::hidden::MethodHandlerWrapper< T >:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

template<class T>
class ulxr::hidden::MethodHandlerWrapper< T >

Internal helper class template, not intended for public use.

Definition at line 425 of file ulxr_http_server.h.


Member Typedef Documentation

template<class T>
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.

Parameters:
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
Returns:
true: request was handled. false: try next handler.

Definition at line 437 of file ulxr_http_server.h.


Constructor & Destructor Documentation

template<class T>
virtual ulxr::hidden::MethodHandlerWrapper< T >::~MethodHandlerWrapper (  )  [inline, virtual]

Destroy method handler wrapper.

Definition at line 444 of file ulxr_http_server.h.

template<class T>
ulxr::hidden::MethodHandlerWrapper< T >::MethodHandlerWrapper ( T *  o,
PMF  a 
) [inline]

Construct a handler wrapper.

Parameters:
o handling object
a desired method in this object

Definition at line 470 of file ulxr_http_server.h.


Member Function Documentation

template<class T>
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.

Parameters:
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
Returns:
true: request was handled. false: try next handler.

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.


Member Data Documentation

template<class T>
T* ulxr::hidden::MethodHandlerWrapper< T >::obj [private]

Definition at line 476 of file ulxr_http_server.h.

Referenced by ulxr::hidden::MethodHandlerWrapper< T >::handle().

template<class T>
PMF ulxr::hidden::MethodHandlerWrapper< T >::adr [private]

Definition at line 477 of file ulxr_http_server.h.

Referenced by ulxr::hidden::MethodHandlerWrapper< T >::handle().


The documentation for this class was generated from the following file:
Generated on Sun Aug 19 20:09:15 2007 for ulxmlrpcpp by  doxygen 1.5.1