NAME

Oak::Application - Class for creating applications in Oak

SYNOPSIS

my $app = new Oak::Web::Application
  (
   "MyApp::page1" => "page1.xml",
   "MyApp::page2" => "page2.xml",
   "MyApp::page3" => "page3.xml",
   "default" => "MyApp::page1"
  );

$app->run(mode => CGI);

# OR

$app->run(mode => FCGI);

# OR

$app->run;			# will use mode => FCGI

DESCRIPTION

This is the class that will be used to create real applications, the executable file will launch it.

METHODS

run

Runs the application, receives the requests and pass to the toplevel components.

Oak::Web::Application generates the message (POST => $cgiobj)

The request must have the "__owa_origin__" parameter to distinguish which toplevel component to use.

EXCEPTIONS

The following exceptions are introduced by Oak::Web::Application

Oak::Web::Application::Error::BrokenDependencies

You tryied to user or CGI or FCGI, but it failed to require or "CGI" or "CGI::Fast".

BUGS

Too early to determine. :)

COPYRIGHT

Copyright (c) 2001 Daniel Ruoso <daniel@ruoso.com> All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.