AppserverIo\Appserver\ServletEngine\Http\Request::getCookie PHP Method

getCookie() public method

Returns the value of the cookie with the passed name.
public getCookie ( string $cookieName ) : AppserverIo\Psr\HttpMessage\CookieInterface
$cookieName string The name of the cookie to return
return AppserverIo\Psr\HttpMessage\CookieInterface The cookie instance
    public function getCookie($cookieName)
    {
        return $this->getHttpRequest()->getCookie($cookieName);
    }