view Lib/IMPL/Web/NotAllowedException.pm @ 230:6d8092d8ce1b

*reworked IMPL::Security *reworked IMPL::Web::Security *refactoring
author sergey
date Mon, 08 Oct 2012 03:37:37 +0400
parents 47f77e6409f7
children 673581380e79
line wrap: on
line source

package IMPL::Web::NotAllowedException;
use strict;

use IMPL::Const qw(:prop);
use IMPL::declare {
    base => [
        'IMPL::Web::Exception' => sub {
            my %args = @_;
            $args{Message};
        }
    ]
};

sub CTOR {
    my $this = shift;
    my %args = @_;
    
    $this->headers({
       allow => $args{allow} 
    });
}

sub status {
    "405 Method Not Allowed"
}

1;

__END__