view Lib/IMPL/Web/CGIApplication.pm @ 287:2d253e6e4a88

*TTView refactoring
author cin
date Tue, 19 Feb 2013 03:05:10 +0400
parents 546957c50a36
children 63709a4e6da0
line wrap: on
line source

package IMPL::Web::CGIApplication;
use strict;

use IMPL::declare {
    require => {
        CGIWrapper => 'IMPL::Web::CGIWrapper'        
    },
    base => [
        'IMPL::Web::Application' => '@_'
    ]
};

sub CTOR {
    my ($this) = @_;
    
    $this->output(\*STDOUT) unless $this->output;
}

sub Run {
    my ($this) = @_;
    
    my $query = CGIWrapper->new();
    
    $query->charset($this->requestCharset) if $this->requestCharset;
    
    $this->ProcessRequest($query);
}

1;