| 1 | package Apache2::Wurfl::Parameters; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings FATAL => 'all'; | ||
| 5 | |||
| 6 | use Apache::Test; | ||
| 7 | use Apache::TestUtil; | ||
| 8 | |||
| 9 | use Apache2::Const -compile => qw(OR_ALL ITERATE); | ||
| 10 | |||
| 11 | use Apache2::CmdParms (); | ||
| 12 | use Apache2::Module (); | ||
| 13 | use Apache2::Directive (); | ||
| 14 | |||
| 15 | |||
| 16 | my @directives = ( | ||
| 17 | { | ||
| 18 | name => 'WurflAPIKey' | ||
| 19 | } | ||
| 20 | ); | ||
| 21 | |||
| 22 | Apache2::Module::add(__PACKAGE__, \@directives); | ||
| 23 | |||
| 24 | sub WurflAPIKey { | ||
| 25 | my ($self, $param, $arg) = @_; | ||
| 26 | die sprintf "error: WurflAPIKey expect a value" unless $arg; | ||
| 27 | $self->{WurflAPIKey} = $arg; | ||
| 28 | |||
| 29 | } | ||
| 30 | |||
| 31 | 1; |