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

PXMLRPCServerResource Class Reference

#include <pxmlrpcs.h>

Inheritance diagram for PXMLRPCServerResource:

PHTTPResource PObject List of all members.

Public Member Functions

 PXMLRPCServerResource ()
 PXMLRPCServerResource (const PHTTPAuthority &auth)
 PXMLRPCServerResource (const PURL &url)
 PXMLRPCServerResource (const PURL &url, const PHTTPAuthority &auth)
BOOL LoadHeaders (PHTTPRequest &request)
BOOL OnPOSTData (PHTTPRequest &request, const PStringToString &data)
virtual void OnXMLRPCRequest (const PString &body, PString &reply)
virtual BOOL SetMethod (const PString &methodName, const PNotifier &func)
void OnXMLRPCRequest (const PString &methodName, PXMLRPCBlock &request, PString &reply)
virtual PString FormatFault (PINDEX code, const PString &str)

Protected Attributes

PMutex methodMutex
PXMLRPCServerMethodList methodList

Constructor & Destructor Documentation

PXMLRPCServerResource::PXMLRPCServerResource  ) 
 

PXMLRPCServerResource::PXMLRPCServerResource const PHTTPAuthority auth  ) 
 

PXMLRPCServerResource::PXMLRPCServerResource const PURL url  ) 
 

PXMLRPCServerResource::PXMLRPCServerResource const PURL url,
const PHTTPAuthority auth
 


Member Function Documentation

virtual PString PXMLRPCServerResource::FormatFault PINDEX  code,
const PString str
[virtual]
 

BOOL PXMLRPCServerResource::LoadHeaders PHTTPRequest request  )  [virtual]
 

Get the headers for block of data (eg HTML) that the resource contains. This will fill in all the fields of the outMIME parameter required by the resource and return the status for the load.

Returns:
TRUE if all OK, FALSE if an error occurred.

Implements PHTTPResource.

BOOL PXMLRPCServerResource::OnPOSTData PHTTPRequest request,
const PStringToString data
[virtual]
 

Send the data associated with a POST command.

The default action calls Post()#.

Returns:
TRUE if the connection may persist, FALSE if the connection must close. If there is no ContentLength field in the response, this value must be FALSE for correct operation.

Reimplemented from PHTTPResource.

void PXMLRPCServerResource::OnXMLRPCRequest const PString methodName,
PXMLRPCBlock request,
PString reply
 

virtual void PXMLRPCServerResource::OnXMLRPCRequest const PString body,
PString reply
[virtual]
 

virtual BOOL PXMLRPCServerResource::SetMethod const PString methodName,
const PNotifier func
[virtual]
 


Member Data Documentation

PXMLRPCServerMethodList PXMLRPCServerResource::methodList [protected]
 

PMutex PXMLRPCServerResource::methodMutex [protected]
 


The documentation for this class was generated from the following file:
Generated on Mon Feb 21 20:43:17 2005 for PWLib by  doxygen 1.4.1