public function setHttpMethod($method)
    {
        $method = strtolower($method);
        if (!in_array($method, self::$supportedRequestTypes)) {
            throw new RestException('The provided HTTP is no supported: "' . $method . '".');
        }

        $this->method = $method;
    }