diff options
author | Frank Karlitschek <karlitschek@kde.org> | 2012-02-15 20:40:37 +0100 |
---|---|---|
committer | Frank Karlitschek <karlitschek@kde.org> | 2012-02-15 20:40:37 +0100 |
commit | dccdeca2581f705c69eb4266aa646173f588a9de (patch) | |
tree | f4cb27fc31b331e03f14cf1c2a1f4719ebb62cdc /3rdparty/Sabre/DAV/Exception | |
parent | c2fb5fed029a77f4cdcd6a8b9a6308ef40091639 (diff) | |
download | nextcloud-server-dccdeca2581f705c69eb4266aa646173f588a9de.tar.gz nextcloud-server-dccdeca2581f705c69eb4266aa646173f588a9de.zip |
remove the 3rdparty files. everything is now in https://gitorious.org/owncloud/3rdparty
Diffstat (limited to '3rdparty/Sabre/DAV/Exception')
-rw-r--r-- | 3rdparty/Sabre/DAV/Exception/BadRequest.php | 28 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Exception/Conflict.php | 28 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Exception/ConflictingLock.php | 35 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Exception/FileNotFound.php | 28 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Exception/Forbidden.php | 27 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Exception/InsufficientStorage.php | 27 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Exception/InvalidResourceType.php | 33 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Exception/LockTokenMatchesRequestUri.php | 39 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Exception/Locked.php | 67 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Exception/MethodNotAllowed.php | 44 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Exception/NotAuthenticated.php | 28 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Exception/NotImplemented.php | 27 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Exception/PreconditionFailed.php | 69 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Exception/ReportNotImplemented.php | 30 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Exception/RequestedRangeNotSatisfiable.php | 29 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Exception/UnsupportedMediaType.php | 28 |
16 files changed, 0 insertions, 567 deletions
diff --git a/3rdparty/Sabre/DAV/Exception/BadRequest.php b/3rdparty/Sabre/DAV/Exception/BadRequest.php deleted file mode 100644 index 7025bb10317..00000000000 --- a/3rdparty/Sabre/DAV/Exception/BadRequest.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -/** - * BadRequest - * - * The BadRequest is thrown when the user submitted an invalid HTTP request - * BadRequest - * - * @package Sabre - * @subpackage DAV - * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. - * @author Evert Pot (http://www.rooftopsolutions.nl/) - * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License - */ -class Sabre_DAV_Exception_BadRequest extends Sabre_DAV_Exception { - - /** - * Returns the HTTP statuscode for this exception - * - * @return int - */ - public function getHTTPCode() { - - return 400; - - } - -} diff --git a/3rdparty/Sabre/DAV/Exception/Conflict.php b/3rdparty/Sabre/DAV/Exception/Conflict.php deleted file mode 100644 index 7eaa08178ae..00000000000 --- a/3rdparty/Sabre/DAV/Exception/Conflict.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -/** - * Conflict - * - * A 409 Conflict is thrown when a user tried to make a directory over an existing - * file or in a parent directory that doesn't exist. - * - * @package Sabre - * @subpackage DAV - * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. - * @author Evert Pot (http://www.rooftopsolutions.nl/) - * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License - */ -class Sabre_DAV_Exception_Conflict extends Sabre_DAV_Exception { - - /** - * Returns the HTTP statuscode for this exception - * - * @return int - */ - public function getHTTPCode() { - - return 409; - - } - -} diff --git a/3rdparty/Sabre/DAV/Exception/ConflictingLock.php b/3rdparty/Sabre/DAV/Exception/ConflictingLock.php deleted file mode 100644 index 279f63dfde7..00000000000 --- a/3rdparty/Sabre/DAV/Exception/ConflictingLock.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php - -/** - * ConflictingLock - * - * Similar to Exception_Locked, this exception thrown when a LOCK request - * was made, on a resource which was already locked - * - * @package Sabre - * @subpackage DAV - * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. - * @author Evert Pot (http://www.rooftopsolutions.nl/) - * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License - */ -class Sabre_DAV_Exception_ConflictingLock extends Sabre_DAV_Exception_Locked { - - /** - * This method allows the exception to include additonal information into the WebDAV error response - * - * @param Sabre_DAV_Server $server - * @param DOMElement $errorNode - * @return void - */ - public function serialize(Sabre_DAV_Server $server,DOMElement $errorNode) { - - if ($this->lock) { - $error = $errorNode->ownerDocument->createElementNS('DAV:','d:no-conflicting-lock'); - $errorNode->appendChild($error); - if (!is_object($this->lock)) var_dump($this->lock); - $error->appendChild($errorNode->ownerDocument->createElementNS('DAV:','d:href',$this->lock->uri)); - } - - } - -} diff --git a/3rdparty/Sabre/DAV/Exception/FileNotFound.php b/3rdparty/Sabre/DAV/Exception/FileNotFound.php deleted file mode 100644 index b20e4a2fb3f..00000000000 --- a/3rdparty/Sabre/DAV/Exception/FileNotFound.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -/** - * FileNotFound - * - * This Exception is thrown when a Node couldn't be found. It returns HTTP error code 404 - * - * @package Sabre - * @subpackage DAV - * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. - * @author Evert Pot (http://www.rooftopsolutions.nl/) - * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License - */ -class Sabre_DAV_Exception_FileNotFound extends Sabre_DAV_Exception { - - /** - * Returns the HTTP statuscode for this exception - * - * @return int - */ - public function getHTTPCode() { - - return 404; - - } - -} - diff --git a/3rdparty/Sabre/DAV/Exception/Forbidden.php b/3rdparty/Sabre/DAV/Exception/Forbidden.php deleted file mode 100644 index 167f3c2760a..00000000000 --- a/3rdparty/Sabre/DAV/Exception/Forbidden.php +++ /dev/null @@ -1,27 +0,0 @@ -<?php - -/** - * Forbidden - * - * This exception is thrown whenever a user tries to do an operation he's not allowed to - * - * @package Sabre - * @subpackage DAV - * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. - * @author Evert Pot (http://www.rooftopsolutions.nl/) - * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License - */ -class Sabre_DAV_Exception_Forbidden extends Sabre_DAV_Exception { - - /** - * Returns the HTTP statuscode for this exception - * - * @return int - */ - public function getHTTPCode() { - - return 403; - - } - -} diff --git a/3rdparty/Sabre/DAV/Exception/InsufficientStorage.php b/3rdparty/Sabre/DAV/Exception/InsufficientStorage.php deleted file mode 100644 index 15007cdd352..00000000000 --- a/3rdparty/Sabre/DAV/Exception/InsufficientStorage.php +++ /dev/null @@ -1,27 +0,0 @@ -<?php - -/** - * InsufficientStorage - * - * This Exception can be thrown, when for example a harddisk is full or a quota is exceeded - * - * @package Sabre - * @subpackage DAV - * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. - * @author Evert Pot (http://www.rooftopsolutions.nl/) - * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License - */ -class Sabre_DAV_Exception_InsufficientStorage extends Sabre_DAV_Exception { - - /** - * Returns the HTTP statuscode for this exception - * - * @return int - */ - public function getHTTPCode() { - - return 507; - - } - -} diff --git a/3rdparty/Sabre/DAV/Exception/InvalidResourceType.php b/3rdparty/Sabre/DAV/Exception/InvalidResourceType.php deleted file mode 100644 index f06810a25ef..00000000000 --- a/3rdparty/Sabre/DAV/Exception/InvalidResourceType.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php - -/** - * InvalidResourceType - * - * This exception is thrown when the user tried to create a new collection, with - * a special resourcetype value that was not recognized by the server. - * - * See RFC5689 section 3.3 - * - * @package Sabre - * @subpackage DAV - * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. - * @author Evert Pot (http://www.rooftopsolutions.nl/) - * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License - */ -class Sabre_DAV_Exception_InvalidResourceType extends Sabre_DAV_Exception_Forbidden { - - /** - * This method allows the exception to include additonal information into the WebDAV error response - * - * @param Sabre_DAV_Server $server - * @param DOMElement $errorNode - * @return void - */ - public function serialize(Sabre_DAV_Server $server,DOMElement $errorNode) { - - $error = $errorNode->ownerDocument->createElementNS('DAV:','d:valid-resourcetype'); - $errorNode->appendChild($error); - - } - -} diff --git a/3rdparty/Sabre/DAV/Exception/LockTokenMatchesRequestUri.php b/3rdparty/Sabre/DAV/Exception/LockTokenMatchesRequestUri.php deleted file mode 100644 index 47032cffc75..00000000000 --- a/3rdparty/Sabre/DAV/Exception/LockTokenMatchesRequestUri.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php - -/** - * LockTokenMatchesRequestUri - * - * This exception is thrown by UNLOCK if a supplied lock-token is invalid - * - * @package Sabre - * @subpackage DAV - * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. - * @author Evert Pot (http://www.rooftopsolutions.nl/) - * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License - */ -class Sabre_DAV_Exception_LockTokenMatchesRequestUri extends Sabre_DAV_Exception_Conflict { - - /** - * Creates the exception - */ - public function __construct() { - - $this->message = 'The locktoken supplied does not match any locks on this entity'; - - } - - /** - * This method allows the exception to include additonal information into the WebDAV error response - * - * @param Sabre_DAV_Server $server - * @param DOMElement $errorNode - * @return void - */ - public function serialize(Sabre_DAV_Server $server,DOMElement $errorNode) { - - $error = $errorNode->ownerDocument->createElementNS('DAV:','d:lock-token-matches-request-uri'); - $errorNode->appendChild($error); - - } - -} diff --git a/3rdparty/Sabre/DAV/Exception/Locked.php b/3rdparty/Sabre/DAV/Exception/Locked.php deleted file mode 100644 index b4bb2e0378c..00000000000 --- a/3rdparty/Sabre/DAV/Exception/Locked.php +++ /dev/null @@ -1,67 +0,0 @@ -<?php - -/** - * Locked - * - * The 423 is thrown when a client tried to access a resource that was locked, without supplying a valid lock token - * - * @package Sabre - * @subpackage DAV - * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. - * @author Evert Pot (http://www.rooftopsolutions.nl/) - * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License - */ -class Sabre_DAV_Exception_Locked extends Sabre_DAV_Exception { - - /** - * Lock information - * - * @var Sabre_DAV_Locks_LockInfo - */ - protected $lock; - - /** - * Creates the exception - * - * A LockInfo object should be passed if the user should be informed - * which lock actually has the file locked. - * - * @param Sabre_DAV_Locks_LockInfo $lock - */ - public function __construct(Sabre_DAV_Locks_LockInfo $lock = null) { - - $this->lock = $lock; - - } - - /** - * Returns the HTTP statuscode for this exception - * - * @return int - */ - public function getHTTPCode() { - - return 423; - - } - - /** - * This method allows the exception to include additonal information into the WebDAV error response - * - * @param Sabre_DAV_Server $server - * @param DOMElement $errorNode - * @return void - */ - public function serialize(Sabre_DAV_Server $server,DOMElement $errorNode) { - - if ($this->lock) { - $error = $errorNode->ownerDocument->createElementNS('DAV:','d:lock-token-submitted'); - $errorNode->appendChild($error); - if (!is_object($this->lock)) var_dump($this->lock); - $error->appendChild($errorNode->ownerDocument->createElementNS('DAV:','d:href',$this->lock->uri)); - } - - } - -} - diff --git a/3rdparty/Sabre/DAV/Exception/MethodNotAllowed.php b/3rdparty/Sabre/DAV/Exception/MethodNotAllowed.php deleted file mode 100644 index 02c145ffeb6..00000000000 --- a/3rdparty/Sabre/DAV/Exception/MethodNotAllowed.php +++ /dev/null @@ -1,44 +0,0 @@ -<?php - -/** - * MethodNotAllowed - * - * The 405 is thrown when a client tried to create a directory on an already existing directory - * - * @package Sabre - * @subpackage DAV - * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. - * @author Evert Pot (http://www.rooftopsolutions.nl/) - * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License - */ -class Sabre_DAV_Exception_MethodNotAllowed extends Sabre_DAV_Exception { - - /** - * Returns the HTTP statuscode for this exception - * - * @return int - */ - public function getHTTPCode() { - - return 405; - - } - - /** - * This method allows the exception to return any extra HTTP response headers. - * - * The headers must be returned as an array. - * - * @return array - */ - public function getHTTPHeaders(Sabre_DAV_Server $server) { - - $methods = $server->getAllowedMethods($server->getRequestUri()); - - return array( - 'Allow' => strtoupper(implode(', ',$methods)), - ); - - } - -} diff --git a/3rdparty/Sabre/DAV/Exception/NotAuthenticated.php b/3rdparty/Sabre/DAV/Exception/NotAuthenticated.php deleted file mode 100644 index 1faffddfa00..00000000000 --- a/3rdparty/Sabre/DAV/Exception/NotAuthenticated.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -/** - * NotAuthenticated - * - * This exception is thrown when the client did not provide valid - * authentication credentials. - * - * @package Sabre - * @subpackage DAV - * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. - * @author Evert Pot (http://www.rooftopsolutions.nl/) - * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License - */ -class Sabre_DAV_Exception_NotAuthenticated extends Sabre_DAV_Exception { - - /** - * Returns the HTTP statuscode for this exception - * - * @return int - */ - public function getHTTPCode() { - - return 401; - - } - -} diff --git a/3rdparty/Sabre/DAV/Exception/NotImplemented.php b/3rdparty/Sabre/DAV/Exception/NotImplemented.php deleted file mode 100644 index cd7f609b09d..00000000000 --- a/3rdparty/Sabre/DAV/Exception/NotImplemented.php +++ /dev/null @@ -1,27 +0,0 @@ -<?php - -/** - * NotImplemented - * - * This exception is thrown when the client tried to call an unsupported HTTP method or other feature - * - * @package Sabre - * @subpackage DAV - * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. - * @author Evert Pot (http://www.rooftopsolutions.nl/) - * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License - */ -class Sabre_DAV_Exception_NotImplemented extends Sabre_DAV_Exception { - - /** - * Returns the HTTP statuscode for this exception - * - * @return int - */ - public function getHTTPCode() { - - return 501; - - } - -} diff --git a/3rdparty/Sabre/DAV/Exception/PreconditionFailed.php b/3rdparty/Sabre/DAV/Exception/PreconditionFailed.php deleted file mode 100644 index ebcb9f5b9ac..00000000000 --- a/3rdparty/Sabre/DAV/Exception/PreconditionFailed.php +++ /dev/null @@ -1,69 +0,0 @@ -<?php - -/** - * PreconditionFailed - * - * This exception is normally thrown when a client submitted a conditional request, - * like for example an If, If-None-Match or If-Match header, which caused the HTTP - * request to not execute (the condition of the header failed) - * - * @package Sabre - * @subpackage DAV - * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. - * @author Evert Pot (http://www.rooftopsolutions.nl/) - * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License - */ -class Sabre_DAV_Exception_PreconditionFailed extends Sabre_DAV_Exception { - - /** - * When this exception is thrown, the header-name might be set. - * - * This allows the exception-catching code to determine which HTTP header - * caused the exception. - * - * @var string - */ - public $header = null; - - /** - * Create the exception - * - * @param string $message - * @param string $header - */ - public function __construct($message, $header=null) { - - parent::__construct($message); - $this->header = $header; - - } - - /** - * Returns the HTTP statuscode for this exception - * - * @return int - */ - public function getHTTPCode() { - - return 412; - - } - - /** - * This method allows the exception to include additonal information into the WebDAV error response - * - * @param Sabre_DAV_Server $server - * @param DOMElement $errorNode - * @return void - */ - public function serialize(Sabre_DAV_Server $server,DOMElement $errorNode) { - - if ($this->header) { - $prop = $errorNode->ownerDocument->createElement('s:header'); - $prop->nodeValue = $this->header; - $errorNode->appendChild($prop); - } - - } - -} diff --git a/3rdparty/Sabre/DAV/Exception/ReportNotImplemented.php b/3rdparty/Sabre/DAV/Exception/ReportNotImplemented.php deleted file mode 100644 index e4ed601b16c..00000000000 --- a/3rdparty/Sabre/DAV/Exception/ReportNotImplemented.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php - -/** - * ReportNotImplemented - * - * This exception is thrown when the client requested an unknown report through the REPORT method - * - * @package Sabre - * @subpackage DAV - * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. - * @author Evert Pot (http://www.rooftopsolutions.nl/) - * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License - */ -class Sabre_DAV_Exception_ReportNotImplemented extends Sabre_DAV_Exception_NotImplemented { - - /** - * This method allows the exception to include additonal information into the WebDAV error response - * - * @param Sabre_DAV_Server $server - * @param DOMElement $errorNode - * @return void - */ - public function serialize(Sabre_DAV_Server $server,DOMElement $errorNode) { - - $error = $errorNode->ownerDocument->createElementNS('DAV:','d:supported-report'); - $errorNode->appendChild($error); - - } - -} diff --git a/3rdparty/Sabre/DAV/Exception/RequestedRangeNotSatisfiable.php b/3rdparty/Sabre/DAV/Exception/RequestedRangeNotSatisfiable.php deleted file mode 100644 index 37abbd729d1..00000000000 --- a/3rdparty/Sabre/DAV/Exception/RequestedRangeNotSatisfiable.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php - -/** - * RequestedRangeNotSatisfiable - * - * This exception is normally thrown when the user - * request a range that is out of the entity bounds. - * - * @package Sabre - * @subpackage DAV - * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. - * @author Evert Pot (http://www.rooftopsolutions.nl/) - * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License - */ -class Sabre_DAV_Exception_RequestedRangeNotSatisfiable extends Sabre_DAV_Exception { - - /** - * returns the http statuscode for this exception - * - * @return int - */ - public function getHTTPCode() { - - return 416; - - } - -} - diff --git a/3rdparty/Sabre/DAV/Exception/UnsupportedMediaType.php b/3rdparty/Sabre/DAV/Exception/UnsupportedMediaType.php deleted file mode 100644 index 4c37d8997cf..00000000000 --- a/3rdparty/Sabre/DAV/Exception/UnsupportedMediaType.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -/** - * UnSupportedMediaType - * - * The 415 Unsupported Media Type status code is generally sent back when the client - * tried to call an HTTP method, with a body the server didn't understand - * - * @package Sabre - * @subpackage DAV - * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. - * @author Evert Pot (http://www.rooftopsolutions.nl/) - * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License - */ -class Sabre_DAV_Exception_UnsupportedMediaType extends Sabre_DAV_Exception { - - /** - * returns the http statuscode for this exception - * - * @return int - */ - public function getHTTPCode() { - - return 415; - - } - -} |