blob: bc2423e6dfe028a06601e373e921e2a5a49c56cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
package RT::Interface::Web::Standalone;
use strict;
use base 'HTTP::Server::Simple::Mason';
use RT::Interface::Web::Handler;
use RT::Interface::Web;
sub handler_class { "RT::Interface::Web::Handler" }
sub setup_escapes {
my $self = shift;
my $handler = shift;
# Override HTTP::Server::Simple::Mason's version of this method to do
# nothing. (RT::Interface::Web::Handler does this already for us in
# NewHandler.)
}
sub default_mason_config {
return @RT::MasonParameters;
}
sub handle_request {
my $self = shift;
my $cgi = shift;
Module::Refresh->refresh if $RT::DevelMode;
$self->SUPER::handle_request($cgi);
$RT::Logger->crit($@) if ($@);
RT::Interface::Web::Handler->CleanupRequest();
}
1;
|