AppserverIo\Appserver\Core\Api\Node\WebAppNode::postInit PHP Method

postInit() protected method

Initialize the web app with the default error page.
protected postInit ( ) : void
return void
    protected function postInit()
    {
        // initialize the node values for the default error page
        $errorCodePattern = new ValueNode(new NodeValue(ErrorPageNodeInterface::DEFAULT_ERROR_CODE_PATTERN));
        $errorLocation = new ValueNode(new NodeValue(ErrorPageNodeInterface::DEFAULT_ERROR_LOCATION));
        // add the default error page
        $this->errorPages[] = new ErrorPageNode($errorCodePattern, $errorLocation);
    }