ulxr::MethodHandler Class Reference

Wrapper class for the method handlers. More...

#include <ulxr_http_server.h>

Collaboration diagram for ulxr::MethodHandler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MethodHandler (hidden::StaticMethodHandler handler)
 Handler is a function or static method.
 MethodHandler (hidden::DynamicMethodHandler handler)
 Handler is a class method.
virtual ~MethodHandler ()
 Destroys the handler.
bool handle (HttpProtocol *prot, const CppString &method, const CppString &resource, const Cpp8BitString &conn_data)
 Call the actual handler function.

Private Member Functions

const MethodHandleroperator= (const MethodHandler &)
 MethodHandler (const MethodHandler &)

Private Attributes

hidden::StaticMethodHandler static_handler
hidden::DynamicMethodHandler dynamic_handler

Detailed Description

Wrapper class for the method handlers.

Definition at line 501 of file ulxr_http_server.h.


Constructor & Destructor Documentation

ulxr::MethodHandler::MethodHandler ( hidden::StaticMethodHandler  handler  ) 

Handler is a function or static method.

Parameters:
handler function adress

Definition at line 1342 of file ulxr_http_server.cpp.

ulxr::MethodHandler::MethodHandler ( hidden::DynamicMethodHandler  handler  ) 

Handler is a class method.

Parameters:
handler method wrapper

Definition at line 1349 of file ulxr_http_server.cpp.

ulxr::MethodHandler::~MethodHandler (  )  [virtual]

Destroys the handler.

Definition at line 1356 of file ulxr_http_server.cpp.

References dynamic_handler.

ulxr::MethodHandler::MethodHandler ( const MethodHandler  )  [private]


Member Function Documentation

bool ulxr::MethodHandler::handle ( HttpProtocol prot,
const CppString method,
const CppString resource,
const Cpp8BitString conn_data 
)

Call the actual handler function.

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 1362 of file ulxr_http_server.cpp.

References ULXR_PCHAR, and ULXR_TRACE.

const MethodHandler& ulxr::MethodHandler::operator= ( const MethodHandler  )  [private]


Member Data Documentation

hidden::StaticMethodHandler ulxr::MethodHandler::static_handler [private]

Definition at line 533 of file ulxr_http_server.h.

hidden::DynamicMethodHandler ulxr::MethodHandler::dynamic_handler [private]

Definition at line 534 of file ulxr_http_server.h.

Referenced by ~MethodHandler().


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