QwuiAbstractHttpServer Class Reference

Base class for the implementation of an HTTP server. An HTTP server needs a resource provider server that will provide the resources 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 setResourceProviderServer (QwuiResourceProviderServer *server)
QwuiResourceProviderServerresourceProviderServer () 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

QwuiResourceProviderServerm_server
RequestProcessingType m_type

Detailed Description

Base class for the implementation of an HTTP server. An HTTP server needs a resource provider server that will provide the resources 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

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.
QwuiAbstractHttpServer::RequestProcessingType QwuiAbstractHttpServer::requestProcessingType (  )  const
QwuiResourceProviderServer * QwuiAbstractHttpServer::resourceProviderServer (  )  const
void QwuiAbstractHttpServer::setRequestProcessingType ( RequestProcessingType  t  ) 
void QwuiAbstractHttpServer::setResourceProviderServer ( QwuiResourceProviderServer server  ) 
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.


Member Data Documentation

Reimplemented in QwuiHttpServer.


The documentation for this class was generated from the following files:
Generated on Fri Jun 4 01:18:58 2010 for QtWui : Web User Interfaces for Qt by  doxygen 1.6.3