Package DE_EPAGES::Test::Mock::Mockify::ServletVarsService
handle the the behavior of epages servlet->vars() for mockify
Functions
addVar
add a variable for vars
Syntax |
addVar( $Key, $Value ); |
Input |
|
getVarValidator
get the validator for a key if not defined it will return undef
Syntax |
getVarValidator( $Input1 ); |
Input |
|
Return |
|
new
constructor
Syntax |
new( ); |
Return |
|
setVarValidator
set the validator for a key
Syntax |
setVarValidator( $Key, $Validator ); |
Input |
|
vars
Without parameter returns all set variables.
With one parameter (name of variable) the value of this variable will be
returned.
With two parameter (name and value of variable) the value of this variable will be
set.
If the Key is not initiated it will throw an error.
If the Value is not like initiated it will throw an error.
Syntax |
$hVars = $Servlet->vars; $Value= $Servlet->vars($Name); $Servlet->vars($Name, $Value); |
Example |
$Servlet->vars('OutputEncoding', 'ISO-8859-1'); |
Input |
|
Return |
|