AppserverIo\Appserver\Core\Api\Node\WebAppNode::__construct PHP Метод

__construct() публичный Метод

Initializes the web application node with default values.
public __construct ( )
    public function __construct()
    {
        // initialize the default configuration for the security check p_security_check form
        $displayName = new ValueNode(new NodeValue('Security Check'));
        $webResourceName = new WebResourceNameNode(new NodeValue('Security Check'));
        $description = new DescriptionNode(new NodeValue('Default Security Check Configuration'));
        $urlPatterns = array(new UrlPatternNode(new NodeValue(sprintf('/%s.*', FormKeys::FORM_ACTION))));
        $httpMethods = array(new HttpMethodNode(new NodeValue(Protocol::METHOD_POST)));
        // prepare the web collection configuration
        $webResourceCollections = array(new WebResourceCollectionNode($webResourceName, $description, $urlPatterns, $httpMethods));
        // finally prepare the security constraint
        $this->securityConstraints[] = new SecurityConstraintNode($displayName, $webResourceCollections);
    }