aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-02-15 14:00:00 +0100
committerRobin Appelman <robin@icewind.nl>2017-02-15 14:00:00 +0100
commit25dc1405116dcbabb1ccf31f75c088e80bd8c6e1 (patch)
tree21fb787a506afcf7266aefc882cf44e3aafff1a7 /lib/private
parent7113af3f9102ca4e27350786934df9de3c54f71b (diff)
downloadnextcloud-server-25dc1405116dcbabb1ccf31f75c088e80bd8c6e1.tar.gz
nextcloud-server-25dc1405116dcbabb1ccf31f75c088e80bd8c6e1.zip
Make it easier to subclass DAV storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Files/Storage/DAV.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php
index 31f87d16b04..76a6155df24 100644
--- a/lib/private/Files/Storage/DAV.php
+++ b/lib/private/Files/Storage/DAV.php
@@ -74,11 +74,11 @@ class DAV extends Common {
/** @var bool */
protected $ready;
/** @var Client */
- private $client;
+ protected $client;
/** @var ArrayCache */
- private $statCache;
+ protected $statCache;
/** @var \OCP\Http\Client\IClientService */
- private $httpClientService;
+ protected $httpClientService;
/**
* @param array $params
@@ -127,7 +127,7 @@ class DAV extends Common {
}
}
- private function init() {
+ protected function init() {
if ($this->ready) {
return;
}
@@ -627,7 +627,7 @@ class DAV extends Common {
* @param string $path to encode
* @return string encoded path
*/
- private function encodePath($path) {
+ protected function encodePath($path) {
// slashes need to stay
return str_replace('%2F', '/', rawurlencode($path));
}
@@ -641,7 +641,7 @@ class DAV extends Common {
* @throws StorageInvalidException
* @throws StorageNotAvailableException
*/
- private function simpleResponse($method, $path, $body, $expected) {
+ protected function simpleResponse($method, $path, $body, $expected) {
$path = $this->cleanPath($path);
try {
$response = $this->client->request($method, $this->encodePath($path), $body);
@@ -815,7 +815,7 @@ class DAV extends Common {
* @throws StorageNotAvailableException if the storage is not available,
* which might be temporary
*/
- private function convertException(Exception $e, $path = '') {
+ protected function convertException(Exception $e, $path = '') {
\OC::$server->getLogger()->logException($e);
Util::writeLog('files_external', $e->getMessage(), Util::ERROR);
if ($e instanceof ClientHttpException) {