protected function redirectToUri($uri, $delay = 0, $statusCode = 303)
    {
        if ($delay === 0) {
            if (!$uri instanceof UriInterface) {
                $uri = new \Neos\Flow\Http\Uri($uri);
            }
            $this->response->setStatus($statusCode);
            $this->response->setHeader('Location', (string)$uri);
        } else {
            $escapedUri = htmlentities($uri, ENT_QUOTES, 'utf-8');
            $this->response->setStatus($statusCode);
            $this->response->setContent('<html><head><meta http-equiv="refresh" content="' . (int)$delay . ';url=' . $escapedUri . '"/></head></html>');
        }
        throw new StopActionException();
    }
protected function redirectToUri($uri, $delay = 0, $statusCode = 303)
    {
        if ($delay === 0) {
            if (!$uri instanceof UriInterface) {
                $uri = new \Neos\Flow\Http\Uri($uri);
            }
            $this->response->setStatus($statusCode);
            $this->response->setHeader('Location', (string)$uri);
        } else {
            $escapedUri = htmlentities($uri, ENT_QUOTES, 'utf-8');
            $this->response->setStatus($statusCode);
            $this->response->setContent('<html><head><meta http-equiv="refresh" content="' . (int)$delay . ';url=' . $escapedUri . '"/></head></html>');
        }
        throw new StopActionException();
    }
protected function redirectToUri ( $ uri , $ delay = 0 , $ statusCode = 303 ) { if ( $ delay === 0 ) { if ( ! $ uri instanceof UriInterface ) { $ uri = new \ Neos \ Flow \ Http \ Uri ( $ uri ) ; } $ this -> response -> setStatus ( $ statusCode ) ; $ this -> response -> setHeader ( 'Location' , ( string ) $ uri ) ; } else { $ escapedUri = htmlentities ( $ uri , ENT_QUOTES , 'utf-8' ) ; $ this -> response -> setStatus ( $ statusCode ) ; $ this -> response -> setContent ( '<html><head><meta http-equiv="refresh" content="' . ( int ) $ delay . ';url=' . $ escapedUri . '"/></head></html>' ) ; } throw new StopActionException ( ) ; }
Redirects to another URI

@param mixed $uri Either a string representation of a URI or a \Neos\Flow\Http\Uri object
@param integer $delay (optional) The delay in seconds. Default is no delay.
@param integer $statusCode (optional) The HTTP status code for the redirect. Default is "303 See Other"
@throws UnsupportedRequestTypeException If the request is not a web request
@throws StopActionException
@api
Redirects to another URI