Torc  0.1
Public Member Functions | Static Protected Member Functions | List of all members
TorcHTMLStaticContent Class Reference

Handles the provision of static server content such as html, css, js etc. More...

#include <torchtmlstaticcontent.h>

Inheritance diagram for TorcHTMLStaticContent:
[legend]

Public Member Functions

 TorcHTMLStaticContent ()
 
void ProcessHTTPRequest (const QString &PeerAddress, int PeerPort, const QString &LocalAddress, int LocalPort, TorcHTTPRequest &Request) override
 
- Public Member Functions inherited from TorcHTTPHandler
 TorcHTTPHandler (const QString &Signature, const QString &Name)
 
virtual ~TorcHTTPHandler ()
 
QString Signature (void) const
 
bool GetRecursive (void) const
 
QString Name (void) const
 
virtual QVariantMap ProcessRequest (const QString &Method, const QVariant &Parameters, QObject *Connection, bool Authenticated)
 

Static Protected Member Functions

static void GetJavascriptConfiguration (TorcHTTPRequest &Request)
 Construct a Javascript object that encapsulates Torc variables, enumerations and translated strings. More...
 
- Static Protected Member Functions inherited from TorcHTTPHandler
static bool MethodIsAuthorised (TorcHTTPRequest &Request, int Allowed)
 Check the current request is authorised and set the authentication header if not. More...
 
static void HandleOptions (TorcHTTPRequest &Request, int Allowed)
 
static void HandleFile (TorcHTTPRequest &Request, const QString &Filename, int Cache)
 

Additional Inherited Members

- Protected Attributes inherited from TorcHTTPHandler
QString m_signature
 
bool m_recursive
 
QString m_name
 

Detailed Description

Handles the provision of static server content such as html, css, js etc.

Definition at line 9 of file torchtmlstaticcontent.h.

Constructor & Destructor Documentation

TorcHTMLStaticContent::TorcHTMLStaticContent ( )

Definition at line 38 of file torchtmlstaticcontent.cpp.

Member Function Documentation

void TorcHTMLStaticContent::GetJavascriptConfiguration ( TorcHTTPRequest Request)
staticprotected

Construct a Javascript object that encapsulates Torc variables, enumerations and translated strings.

The contents of this object are available as 'torcconfiguration.js' and it must be regenerated/requested following a language change.

Definition at line 85 of file torchtmlstaticcontent.cpp.

void TorcHTMLStaticContent::ProcessHTTPRequest ( const QString &  PeerAddress,
int  PeerPort,
const QString &  LocalAddress,
int  LocalPort,
TorcHTTPRequest Request 
)
overridevirtual

Implements TorcHTTPHandler.

Definition at line 50 of file torchtmlstaticcontent.cpp.


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