Apache-Voodoo
view release on metacpan or search on metacpan
lib/Apache/Voodoo/Soap.pm view on Meta::CPAN
elsif ($e->isa("Apache::Voodoo::Exception::Application::AccessDenied")) {
$self->{'status'} = $self->{'mp'}->forbidden;
$self->_client_fault($self->{'mp'}->forbidden, $e->error, $e->detail);
}
elsif ($e->isa("Apache::Voodoo::Exception::Application::RawData")) {
$self->{'status'} = $self->{'mp'}->ok;
return {
'error' => 0,
'success' => 1,
'rawdata' => 1,
'content-type' => $e->content_type,
'headers' => $e->headers,
'data' => $e->data
};
}
elsif ($e->isa("Apache::Voodoo::Exception::Application::SessionTimeout")) {
$self->{'status'} = $self->{'mp'}->ok;
$self->_client_fault(700, $e->error, $e->target);
}
elsif ($e->isa("Apache::Voodoo::Exception::RunTime") && $self->{'engine'}->is_devel_mode()) {
# Apache::Voodoo::Exception::RunTime
lib/Apache/Voodoo/View/HTML.pm view on Meta::CPAN
$self->{'theme_handler'} = Apache::Voodoo::View::HTML::Theme->new($config->{'themes'});
}
$self->content_type('text/html');
}
sub begin {
my $self = shift;
my $p = shift;
$self->content_type($p->{"template_conf"}->{"content-type"} || 'text/html');
my $skeleton;
eval {
my $return;
if ($self->{'use_themes'}) {
# time to do the theme processing stuff.
$return = $self->{'theme_handler'}->handle(
{
"document_root" => $self->{'template_dir'},
"session" => $p->{'session'},
( run in 1.690 second using v1.01-cache-2.11-cpan-524268b4103 )