Wexus2 0.20
|
#include <RedirectApp.h>
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 |
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
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 /
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.
Reimplemented from wexus::Application.