Wexus2 0.20
wexus::RedirectApp Class Reference

#include <RedirectApp.h>

Inheritance diagram for wexus::RedirectApp:

List of all members.

Public Member Functions

virtual void init (const QVariantMap &settings)
virtual void handleApplicationRequest (QString &filteredRequest, wexus::HTTPRequest &req, wexus::HTTPReply &reply)

Protected Attributes

QMap< QString, QString > dm_redirs

Detailed Description

An app that, based on a list, does redirections.

INI parameters: linkX = "/src dest" X is a number, 1, 2, etc /src is url to match, leading / is required dest is the url to return, can be relative to have a / or hostname, etc

Author:
Aleksander Demko

Member Function Documentation

virtual void wexus::RedirectApp::handleApplicationRequest ( QString &  filteredRequest,
wexus::HTTPRequest req,
wexus::HTTPReply reply 
) [virtual]

A enhanced handleApplicationRequest() call from the wexus::Site to wexus::Application. This implements the controll-handler system. This method is not typically overriden, but can be if you want to layer over the default controller-handler system.

filteredRequest contains just the action call. It always starts with atleast a /

Author:
Aleksander Demko

Reimplemented from wexus::Application.

virtual void wexus::RedirectApp::init ( const QVariantMap &  settings) [virtual]

Called shortly after creation. This saves a copy of the settings reference (acceisble via settings()) and also opens the database.

Decendants may overide this to add additional functionality. They should call this version, first, however.

Author:
Aleksander Demko

Reimplemented from wexus::Application.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Enumerator