Merged 5.49_01 (r1339) from refactored branch to trunk
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine / Apache / MP19 / Apreq.pm
diff --git a/lib/Catalyst/Engine/Apache/MP19/Apreq.pm b/lib/Catalyst/Engine/Apache/MP19/Apreq.pm
deleted file mode 100644 (file)
index 3c98df4..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-package Catalyst::Engine::Apache::MP19::Apreq;
-
-use strict;
-use base 'Catalyst::Engine::Apache::MP19::Base';
-
-use Apache::Request ();
-use Apache::Upload  ();
-
-=head1 NAME
-
-Catalyst::Engine::Apache::MP19::Apreq - Apreq class for MP 1.9 Engines
-
-=head1 SYNOPSIS
-
-See L<Catalyst>.
-
-=head1 DESCRIPTION
-
-This is the Catalyst engine specialized for Apache mod_perl version 1.99.
-
-=head1 OVERLOADED METHODS
-
-This class overloads some methods from C<Catalyst::Engine::Apache::MP19::Base>.
-
-=over 4
-
-=item $c->prepare_parameters
-
-=cut
-
-sub prepare_parameters {
-    my $c = shift;
-
-    my @params;
-
-    $c->apache->param->do( sub {
-        my ( $field, $value ) = @_;
-        push( @params, $field, $value );
-        return 1;
-    });
-
-    $c->request->param(@params);
-}
-
-=item $c->prepare_request($r)
-
-=cut
-
-sub prepare_request {
-    my ( $c, $r ) = @_;
-    $c->apache( Apache::Request->new($r) );
-}
-
-=item $c->prepare_uploads
-
-=cut
-
-sub prepare_uploads {
-    my $c = shift;
-
-    # This is a workaround for a know bug with libapreq <= 2.0.4
-    # http://svn.apache.org/viewcvs.cgi?rev=122925&view=rev
-    
-    my @uploads;    
-
-    for my $field ( $c->request->param ) {
-
-        for my $upload ( $c->apache->upload($field) ) {
-
-            my $object = Catalyst::Request::Upload->new(
-                filename => $upload->filename,
-                size     => $upload->size,
-                tempname => $upload->tempname,
-                type     => $upload->type
-            );
-
-            push( @uploads, $field, $object );
-        }
-    }
-
-    $c->request->upload(@uploads);
-}
-
-=back
-
-=head1 SEE ALSO
-
-L<Catalyst>, L<Catalyst::Engine>, L<Catalyst::Engine::Apache::MP19::Base>.
-
-=head1 AUTHOR
-
-Sebastian Riedel, C<sri@cpan.org>
-Christian Hansen C<ch@ngmedia.com>
-
-=head1 COPYRIGHT
-
-This program is free software, you can redistribute it and/or modify it under
-the same terms as Perl itself.
-
-=cut
-
-1;