QwuiAbstractHttpServer Class Reference

Base class for the implementation of an HTTP server. An HTTP server needs a ressource provider server that will provide the ressources depending on the mime type. There are two operating modes for a server: Queuing the requests and treating them sequentially or using a different thread for each connection. More...

#include <qwuiabstracthttpserver.h>

Inheritance diagram for QwuiAbstractHttpServer:

QwuiHttpServer

List of all members.

Public Types

enum  RequestProcessingType { QueuedProcessing, ThreadedProcessing }

Public Member Functions

 QwuiAbstractHttpServer (QObject *parent=NULL)
virtual ~QwuiAbstractHttpServer ()
void setRessourceProviderServer (QwuiRessourceProviderServer *server)
QwuiRessourceProviderServerressourceProviderServer () const
void setRequestProcessingType (RequestProcessingType t)
RequestProcessingType requestProcessingType () const
virtual bool start ()=0
virtual QString error () const

Protected Member Functions

void process (QwuiAbstractHttpServerDelegate *delegate)

Private Attributes

QwuiRessourceProviderServerm_server
RequestProcessingType m_type


Detailed Description

Base class for the implementation of an HTTP server. An HTTP server needs a ressource provider server that will provide the ressources depending on the mime type. There are two operating modes for a server: Queuing the requests and treating them sequentially or using a different thread for each connection.

Member Enumeration Documentation

Enumerator:
QueuedProcessing 
ThreadedProcessing 


Constructor & Destructor Documentation

QwuiAbstractHttpServer::QwuiAbstractHttpServer ( QObject *  parent = NULL  ) 

QwuiAbstractHttpServer::~QwuiAbstractHttpServer (  )  [virtual]


Member Function Documentation

void QwuiAbstractHttpServer::setRessourceProviderServer ( QwuiRessourceProviderServer server  ) 

QwuiRessourceProviderServer * QwuiAbstractHttpServer::ressourceProviderServer (  )  const

void QwuiAbstractHttpServer::setRequestProcessingType ( RequestProcessingType  t  ) 

QwuiAbstractHttpServer::RequestProcessingType QwuiAbstractHttpServer::requestProcessingType (  )  const

virtual bool QwuiAbstractHttpServer::start (  )  [pure virtual]

Implement this method to implement the server start.

Returns:
true if the initialization succeeded, false otherwise.

Implemented in QwuiHttpServer.

QString QwuiAbstractHttpServer::error (  )  const [virtual]

Returns:
the error string describing a failed initialization.

Reimplemented in QwuiHttpServer.

void QwuiAbstractHttpServer::process ( QwuiAbstractHttpServerDelegate delegate  )  [protected]

Parameters:
delegate a delegate representing an incomming connection.


Member Data Documentation

Reimplemented in QwuiHttpServer.


The documentation for this class was generated from the following files:

Generated on Fri Dec 19 00:31:14 2008 for QtWui : Web User Interfaces for Qt by  doxygen 1.5.6