QwuiAbstractHttpServerDelegate Class Reference

This class represents wraps the handling of an HTTP request. A delegate is created by the QwuiAbstractHttpServer for each incomming connection and the processing of the HTTP request takes place in this delegate. More...

#include <qwuiabstracthttpserverdelegate.h>

Inheritance diagram for QwuiAbstractHttpServerDelegate:
QwuiHttpServerDelegate

List of all members.

Public Member Functions

 QwuiAbstractHttpServerDelegate (QwuiResourceProviderServer *providerServer=NULL)
virtual ~QwuiAbstractHttpServerDelegate ()

Protected Slots

virtual void doRun ()

Protected Member Functions

QIODevice * device () const
virtual QIODevice * createDevice ()=0
virtual void deleteDevice (QIODevice *device)=0
virtual QHttpRequestHeader readHttpRequestHeader ()=0
virtual QString readHttpRequestContent ()=0
virtual void writeHttpResponseHeader (const QHttpResponseHeader &responseHeader)=0
virtual void run ()
virtual void handleRequest (const QHttpRequestHeader &header)
virtual void handleHeadRequest (const QHttpRequestHeader &header)
void setSessionId (QHttpHeader &header, const QString &sessionId) const
QString sessionId (const QHttpHeader &header) const

Private Attributes

QIODevice * m_device
QwuiResourceProviderServerm_providerServer
QLocale * m_en_USLocale
QwuiAbstractResourceProviderm_provider
QwuiMessageResourcem_notFoundResource
QwuiAbstractResourcem_resource
QTimer * m_timer

Friends

class QwuiAbstractHttpServer

Detailed Description

This class represents wraps the handling of an HTTP request. A delegate is created by the QwuiAbstractHttpServer for each incomming connection and the processing of the HTTP request takes place in this delegate.


Constructor & Destructor Documentation

QwuiAbstractHttpServerDelegate::QwuiAbstractHttpServerDelegate ( QwuiResourceProviderServer providerServer = NULL  ) 
QwuiAbstractHttpServerDelegate::~QwuiAbstractHttpServerDelegate (  )  [virtual]

Member Function Documentation

virtual QIODevice* QwuiAbstractHttpServerDelegate::createDevice (  )  [protected, pure virtual]

Implemented in QwuiHttpServerDelegate.

virtual void QwuiAbstractHttpServerDelegate::deleteDevice ( QIODevice *  device  )  [protected, pure virtual]

Implemented in QwuiHttpServerDelegate.

QIODevice * QwuiAbstractHttpServerDelegate::device (  )  const [protected]
void QwuiAbstractHttpServerDelegate::doRun (  )  [protected, virtual, slot]
void QwuiAbstractHttpServerDelegate::handleHeadRequest ( const QHttpRequestHeader &  header  )  [protected, virtual]
void QwuiAbstractHttpServerDelegate::handleRequest ( const QHttpRequestHeader &  header  )  [protected, virtual]
virtual QString QwuiAbstractHttpServerDelegate::readHttpRequestContent (  )  [protected, pure virtual]

Implemented in QwuiHttpServerDelegate.

virtual QHttpRequestHeader QwuiAbstractHttpServerDelegate::readHttpRequestHeader (  )  [protected, pure virtual]

Implemented in QwuiHttpServerDelegate.

void QwuiAbstractHttpServerDelegate::run (  )  [protected, virtual]
QString QwuiAbstractHttpServerDelegate::sessionId ( const QHttpHeader &  header  )  const [protected]
void QwuiAbstractHttpServerDelegate::setSessionId ( QHttpHeader &  header,
const QString &  sessionId 
) const [protected]
virtual void QwuiAbstractHttpServerDelegate::writeHttpResponseHeader ( const QHttpResponseHeader &  responseHeader  )  [protected, pure virtual]

Implemented in QwuiHttpServerDelegate.


Friends And Related Function Documentation

friend class QwuiAbstractHttpServer [friend]

Member Data Documentation


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