public function setRequestMethod($method)
    {
        if ($this->getType() !== self::TYPE_REQUEST)
            return false;

        $method = strtoupper($method);
        $REQUEST_METHODS = array('OPTIONS', 'GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'TRACE');

        if (!in_array($method, $REQUEST_METHODS))
            return false;

        $this->requestMethod = $method;
        return true;
    }