/** * Sets the content length of the output stream * * @param string $value The content length * * @return void * * @throw Exception if $value is not numeric throws notAcceptableError */ public function setResponseContentLength($value) { if (preg_match('/[0-9]+/', $value)) { $this->_operationContext->outgoingResponse()->setContentLength($value); } else { throw ODataException::notAcceptableError("ContentLength:{$value} is invalid"); } }