Maxscape::Process Package
Member Functions
Synopsis
use Maxscape::Process;
Description
The Maxscape::Process package supplies the basic functionality to deal with the server and application processes.
Examples
my $Process = Maxscape::Process->new (ProcessType => 'DAEMON'); if ($Process->initialise()) { $Process->execute(); }
new
Synopsis
my $Process = Maxscape::Process->new (ProcessType => 'FCGI');
Description
Creates a new Process object. Values for parameter 'ProcessType' are: 'SCRIPT' || 'FCGI' || 'CGI' || 'DAEMON'
initialise
Synopsis
my $Process = Maxscape::Process->initialise ( %P );
Description
Initialises a process.
execute
Synopsis
my $Process = Maxscape::Process->execute ($Request, $ClientConnection);
Description
Executes the functions of a process. Namely creates the $Page object.
acceptRequest
Synopsis
my ($CGI, $Context, $User) = Maxscape::Process->acceptRequest ($Request, $ClientConnection);
Description
Creates the $CGI, $Context and $User objects from a client's request.
getInitState
Synopsis
my $Process = Maxscape::Process->getInitState ($Host, $Port, $MessageText);
Description
Get's the initialisation state.
postProcess
Synopsis
Maxscape::Process->postProcess ();
Description
Executed after page generation, e.g. to log data or to manipulate a generated page.
cleanup
Synopsis
my $Process = Maxscape::Process->cleanup ($Force);
Description
Clean up after all is done.