Added pluggable URL and content handlers.

This commit is contained in:
JT Smith 2007-12-14 22:08:09 +00:00
parent fb33859cc6
commit 1fc11fbda8
19 changed files with 1101 additions and 411 deletions

View file

@ -82,12 +82,6 @@
"richEditorsUseAssetUrls" : 1,
# An array of URLs that WebGUI should leave alone for normal
# processing by Apache. Anything that begins with these URLs
# will be entirely ignored by WebGUI
# "passthruUrls" : ["/icons", "/documentation/pdf", "/my-custom-application", "/server-status", "/perl-status"],
# If you are not running your web server on the standard
# port (80) then use this setting to specify that.
@ -450,7 +444,34 @@
# Optional script to run upon successful logout. The script can contain macros
# Example: /data/WebGUI/sbin/doLogout.pl --configFile=dev.localhost.localdomain.conf --logoutPage=^PageUrl();
"runOnLogout" : ""
"runOnLogout" : "",
# URL handlers are used to associate functionality with a URL via a regular expression.
"urlHandlers" : [
{ "^/extras" : "WebGUI::URL::PassThru" },
# { "^/icons" : "WebGUI::URL::PassThru" },
# { "^/documentation/pdf" : "WebGUI::URL::PassThru" },
# { "^/my-custom-application$" : "WebGUI::URL::PassThru" },
# { "^/server-status$" : "WebGUI::URL::PassThru" },
# { "^/perl-status$" : "WebGUI::URL::PassThru" },
{ "^/uploads/dictionaries" : "WebGUI::URL::Unauthorized" },
{ "^/uploads" : "WebGUI::URL::Uploads" },
{ "^/\*give-credit-where-credit-is-due\*$" : "WebGUI::URL::Credits" },
{ "^/abcdefghijklmnopqrstuvwxyz$" : "WebGUI::URL::Snoop" },
{ ".*" : "WebGUI::URL::Content" }
],
# Content handlers are used to produce content from the content URL handler.
"contentHandlers" : [
"WebGUI::Content::Prefetch",
"WebGUI::Content::Maintenance",
"WebGUI::Content::Operation",
"WebGUI::Content::Setup",
"WebGUI::Content::Asset",
"WebGUI::Content::NotFound"
]
}