Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

HttpErrors Class Reference

List of all members.

Static Public Member Functions

void getErrorMessage (int statusCode, string &out)
void getErrorPage (int statusCode, string &out)
void load ()
void unLoad ()

Static Private Member Functions

void putMessage (int, const char *)

Static Private Attributes

HashMap< int, const char * > messagesMap
Mutex mutex

Member Function Documentation

void HttpErrors::getErrorMessage int  statusCode,
string &  out
[static]
 

Get an error message from its error code.

Parameters:
statusCode The HTTP error.
out Output string where write the error message.

void HttpErrors::getErrorPage int  statusCode,
string &  out
[static]
 

Get an error page from its error code.

Parameters:
statusCode The HTTP error.
out Output string where write the error page name.

void HttpErrors::load  )  [static]
 

Load the HTTP errors.

void HttpErrors::putMessage int  id,
const char *  msg
[static, private]
 

Put a new message in the map.

Parameters:
id The HTTP error code.
msg The message associated to the error code.

void HttpErrors::unLoad  )  [static]
 

Unload the allocated resources.


Member Data Documentation

HashMap< int, const char * > HttpErrors::messagesMap [static, private]
 

Mutex HttpErrors::mutex [static, private]
 


Generated on Thu May 1 12:41:01 2008 for MyServer by  doxygen 1.3.9.1