2017-02-10 13:52:25 +01:00
|
|
|
package main;
|
|
|
|
|
2017-02-15 07:41:50 +01:00
|
|
|
sub hostname { 'test1.example.com' }
|
2017-02-10 13:52:25 +01:00
|
|
|
|
2016-03-17 23:19:44 +01:00
|
|
|
package Lemonldap::NG::Handler::Test;
|
|
|
|
|
|
|
|
use Lemonldap::NG::Handler::Main;
|
|
|
|
our @ISA = qw(Lemonldap::NG::Handler::Main);
|
|
|
|
our $header;
|
|
|
|
|
2017-02-12 21:09:46 +01:00
|
|
|
use constant defaultLogger => 'Lemonldap::NG::Common::Logger::Std';
|
|
|
|
|
2016-03-17 23:19:44 +01:00
|
|
|
use constant REDIRECT => 302;
|
2017-02-15 07:41:50 +01:00
|
|
|
|
2017-02-10 13:52:25 +01:00
|
|
|
#sub hostname { 'test1.example.com' }
|
|
|
|
*hostname = \&main::hostname;
|
2017-02-15 07:41:50 +01:00
|
|
|
*logger = \&Lemonldap::NG::Handler::Main::logger;
|
2016-03-17 23:19:44 +01:00
|
|
|
sub newRequest { 1 }
|
|
|
|
sub header_in { "" }
|
|
|
|
sub is_initial_req { '1' }
|
|
|
|
sub remote_ip { '127.0.0.1' }
|
|
|
|
sub args { undef }
|
|
|
|
sub unparsed_uri { '/' }
|
|
|
|
sub uri { '/' }
|
|
|
|
sub uri_with_args { '/' }
|
|
|
|
sub get_server_port { '80' }
|
|
|
|
sub set_header_out { $header = join( ':', $_[1], $_[2], ); }
|
|
|
|
sub setServerSignature { 1 }
|
|
|
|
sub _lmLog { 1 }
|
|
|
|
1;
|