public function checkinItem($path)
{
$path = $this->encodeAndValidatePathForDavex($path);
try {
$request = $this->getRequest(Request::CHECKIN, $path);
$curl = $request->execute(true);
if ($curl->getHeader("Location")) {
return $this->removeTrailingSlash($this->stripServerRootFromUri(urldecode($curl->getHeader("Location"))));
}
} catch (HTTPErrorException $e) {
if ($e->getCode() == 405) {
throw new UnsupportedRepositoryOperationException();
}
throw new RepositoryException($e->getMessage());
}
throw new RepositoryException();
}