/** * Parses the MKCOL request and returns a request object. * * This method is responsible for parsing the MKCOL request. It retrieves * the current request URI in $path and the request body as $body. The * return value, if no exception is thrown, is a valid {@link * ezcWebdavMakeCollectionRequest} object. * * This method may be overwritten to adjust it to special client behaviour. * * @param string $path * @param string $body * @return ezcWebdavMakeCollectionRequest */ protected function parseMakeCollectionRequest($path, $body) { $req = new ezcWebdavMakeCollectionRequest($path, trim($body) === '' ? null : $body); $req->setHeaders(ezcWebdavServer::getInstance()->headerHandler->parseHeaders()); return $req; }