AppserverIo\Appserver\ServletEngine\Security\Mapping::__construct PHP Method

__construct() public method

Initialize the mapping with the passed values.
public __construct ( string $urlPattern, string $authenticatorSerial, array $roleNames = [], array $httpMethods = [], array $httpMethodOmissions = [] )
$urlPattern string The URL pattern
$authenticatorSerial string The authenticator serial
$roleNames array The array with the role names
$httpMethods array The array with the HTTP methods that has to be authenticated
$httpMethodOmissions array The array with the HTTP methods that has to be omissed from authentication
    public function __construct($urlPattern, $authenticatorSerial, array $roleNames = array(), array $httpMethods = array(), array $httpMethodOmissions = array())
    {
        $this->urlPattern = $urlPattern;
        $this->authenticatorSerial = $authenticatorSerial;
        $this->roleNames = $roleNames;
        $this->httpMethods = $httpMethods;
        $this->httpMethodOmissions = $httpMethodOmissions;
    }