Skip to content

Commit

Permalink
Deprecated WebDAV support
Browse files Browse the repository at this point in the history
Not relevant anymore, will help reduce footprint moving forward.
  • Loading branch information
jlouvel committed Oct 29, 2024
1 parent 37d5d73 commit bc0d50a
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public final class Method implements Comparable<Method> {

private static final String BASE_HTTP = "http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html";

@Deprecated
private static final String BASE_WEBDAV = "http://www.webdav.org/specs/rfc2518.html";

/**
Expand All @@ -56,7 +57,9 @@ public final class Method implements Comparable<Method> {
* @see <a
* href="http://www.webdav.org/specs/rfc2518.html#METHOD_COPY">WEBDAV
* RFC - 8.8 COPY Method</a>
*/
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Method COPY = new Method(
"COPY",
"Creates a duplicate of the source resource, identified by the Request-URI, in the destination resource, identified by the URI in the Destination header",
Expand Down Expand Up @@ -108,7 +111,9 @@ public final class Method implements Comparable<Method> {
* @see <a
* href="http://www.webdav.org/specs/rfc2518.html#METHOD_LOCK">WEBDAV
* RFC - 8.10 LOCK Method</a>
*/
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Method LOCK = new Method("LOCK",
"Used to take out a lock of any access type (WebDAV)", BASE_WEBDAV
+ "#METHOD_LOCK", false, false);
Expand All @@ -120,7 +125,9 @@ public final class Method implements Comparable<Method> {
* @see <a
* href="http://www.webdav.org/specs/rfc2518.html#METHOD_MKCOL">WEBDAV
* RFC - 8.3 MKCOL Method</a>
*/
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Method MKCOL = new Method("MKCOL",
"Used to create a new collection (WebDAV)", BASE_WEBDAV
+ "#METHOD_MKCOL", false, true);
Expand All @@ -133,7 +140,9 @@ public final class Method implements Comparable<Method> {
* @see <a
* href="http://www.webdav.org/specs/rfc2518.html#METHOD_MOVE">WEBDAV
* RFC - 8.3 MKCOL Method</a>
*/
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Method MOVE = new Method(
"MOVE",
"Logical equivalent of a copy, followed by consistency maintenance processing, followed by a delete of the source (WebDAV)",
Expand Down Expand Up @@ -185,7 +194,9 @@ public final class Method implements Comparable<Method> {
* @see <a
* href="http://www.webdav.org/specs/rfc2518.html#METHOD_PROPFIND">WEBDAV
* RFC - 8.1 PROPFIND</a>
*/
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Method PROPFIND = new Method(
"PROPFIND",
"Retrieves properties defined on the resource identified by the request URI",
Expand All @@ -198,7 +209,9 @@ public final class Method implements Comparable<Method> {
* @see <a
* href="http://www.webdav.org/specs/rfc2518.html#METHOD_PROPPATCH">WEBDAV
* RFC - 8.2 PROPPATCH</a>
*/
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Method PROPPATCH = new Method(
"PROPPATCH",
"Processes instructions specified in the request body to set and/or remove properties defined on the resource identified by the request URI",
Expand Down Expand Up @@ -237,7 +250,9 @@ public final class Method implements Comparable<Method> {
* @see <a
* href="http://www.webdav.org/specs/rfc2518.html#METHOD_UNLOCK">WEBDAV
* RFC - 8.11 UNLOCK Method</a>
*/
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Method UNLOCK = new Method(
"UNLOCK",
"Removes the lock identified by the lock token from the request URI, and all other resources included in the lock",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public final class Status {
+ Engine.MINOR_NUMBER
+ "/gwt/api/";

@Deprecated
private static final String BASE_WEBDAV = "http://www.webdav.org/specs/rfc2518.html";

/**
Expand Down Expand Up @@ -67,7 +68,9 @@ public final class Status {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#STATUS_424">WEBDAV
* RFC - 10.5 424 Failed Dependency</a>
*/
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Status CLIENT_ERROR_FAILED_DEPENDENCY = new Status(424);

/**
Expand Down Expand Up @@ -106,7 +109,9 @@ public final class Status {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#STATUS_423">WEBDAV
* RFC - 10.4 423 Locked</a>
*/
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Status CLIENT_ERROR_LOCKED = new Status(423);

/**
Expand Down Expand Up @@ -241,7 +246,9 @@ public final class Status {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#STATUS_422">WEBDAV
* RFC - 10.3 422 Unprocessable Entity</a>
*/
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Status CLIENT_ERROR_UNPROCESSABLE_ENTITY = new Status(
422);

Expand Down Expand Up @@ -327,7 +334,9 @@ public final class Status {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#STATUS_102">WEBDAV
* RFC - 10.1 102 Processing</a>
*/
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Status INFO_PROCESSING = new Status(102);

/**
Expand Down Expand Up @@ -462,7 +471,9 @@ public final class Status {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#STATUS_507">WEBDAV
* RFC - 10.6 507 Insufficient Storage</a>
*/
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Status SERVER_ERROR_INSUFFICIENT_STORAGE = new Status(
507);

Expand Down Expand Up @@ -544,7 +555,9 @@ public final class Status {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#STATUS_207">WEBDAV
* RFC - 10.2 207 Multi-Status</a>
*/
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Status SUCCESS_MULTI_STATUS = new Status(207);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
* Protocol helper for the WEBDAV protocol.
*
* @author Thierry Boileau
*
* @deprecated Will be removed in next version.
*/
@Deprecated
public class WebDavProtocolHelper extends ProtocolHelper {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public final class Method implements Comparable<Method> {

private static final String BASE_HTTP = "http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html";

@Deprecated
private static final String BASE_WEBDAV = "http://www.webdav.org/specs/rfc2518.html";

/**
Expand All @@ -52,7 +53,9 @@ public final class Method implements Comparable<Method> {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#METHOD_COPY">WEBDAV
* RFC - 8.8 COPY Method</a>
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Method COPY = new Method("COPY",
"Creates a duplicate of the source resource, identified by the Request-URI, in the destination resource, identified by the URI in the Destination header",
BASE_WEBDAV + "#METHOD_COPY", false, true);
Expand Down Expand Up @@ -99,7 +102,9 @@ public final class Method implements Comparable<Method> {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#METHOD_LOCK">WEBDAV
* RFC - 8.10 LOCK Method</a>
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Method LOCK = new Method("LOCK", "Used to take out a lock of any access type (WebDAV)",
BASE_WEBDAV + "#METHOD_LOCK", false, false);

Expand All @@ -109,7 +114,9 @@ public final class Method implements Comparable<Method> {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#METHOD_MKCOL">WEBDAV
* RFC - 8.3 MKCOL Method</a>
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Method MKCOL = new Method("MKCOL", "Used to create a new collection (WebDAV)",
BASE_WEBDAV + "#METHOD_MKCOL", false, true);

Expand All @@ -120,7 +127,9 @@ public final class Method implements Comparable<Method> {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#METHOD_MOVE">WEBDAV
* RFC - 8.3 MKCOL Method</a>
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Method MOVE = new Method("MOVE",
"Logical equivalent of a copy, followed by consistency maintenance processing, followed by a delete of the source (WebDAV)",
BASE_WEBDAV + "#METHOD_MOVE", false, false);
Expand Down Expand Up @@ -166,7 +175,9 @@ public final class Method implements Comparable<Method> {
* @see <a href=
* "http://www.webdav.org/specs/rfc2518.html#METHOD_PROPFIND">WEBDAV RFC -
* 8.1 PROPFIND</a>
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Method PROPFIND = new Method("PROPFIND",
"Retrieves properties defined on the resource identified by the request URI",
BASE_WEBDAV + "#METHOD_PROPFIND", true, true);
Expand All @@ -178,7 +189,9 @@ public final class Method implements Comparable<Method> {
* @see <a href=
* "http://www.webdav.org/specs/rfc2518.html#METHOD_PROPPATCH">WEBDAV RFC -
* 8.2 PROPPATCH</a>
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Method PROPPATCH = new Method("PROPPATCH",
"Processes instructions specified in the request body to set and/or remove properties defined on the resource identified by the request URI",
BASE_WEBDAV + "#METHOD_PROPPATCH", false, true);
Expand Down Expand Up @@ -210,7 +223,9 @@ public final class Method implements Comparable<Method> {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#METHOD_UNLOCK">WEBDAV
* RFC - 8.11 UNLOCK Method</a>
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Method UNLOCK = new Method("UNLOCK",
"Removes the lock identified by the lock token from the request URI, and all other resources included in the lock",
BASE_WEBDAV + "#METHOD_UNLOCK", false, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public final class Status {
private static final String BASE_RESTLET = "https://javadocs.restlet.talend.com/" + Engine.MAJOR_NUMBER + '.'
+ Engine.MINOR_NUMBER + "/api/";

@Deprecated
private static final String BASE_WEBDAV = "http://www.webdav.org/specs/rfc2518.html";

/**
Expand Down Expand Up @@ -62,7 +63,9 @@ public final class Status {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#STATUS_424">WEBDAV RFC
* - 10.5 424 Failed Dependency</a>
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Status CLIENT_ERROR_FAILED_DEPENDENCY = new Status(424);

/**
Expand Down Expand Up @@ -100,7 +103,9 @@ public final class Status {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#STATUS_423">WEBDAV RFC
* - 10.4 423 Locked</a>
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Status CLIENT_ERROR_LOCKED = new Status(423);

/**
Expand Down Expand Up @@ -229,7 +234,9 @@ public final class Status {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#STATUS_422">WEBDAV RFC
* - 10.3 422 Unprocessable Entity</a>
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Status CLIENT_ERROR_UNPROCESSABLE_ENTITY = new Status(422);

/**
Expand Down Expand Up @@ -312,7 +319,9 @@ public final class Status {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#STATUS_102">WEBDAV RFC
* - 10.1 102 Processing</a>
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Status INFO_PROCESSING = new Status(102);

/**
Expand Down Expand Up @@ -446,7 +455,9 @@ public final class Status {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#STATUS_507">WEBDAV RFC
* - 10.6 507 Insufficient Storage</a>
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Status SERVER_ERROR_INSUFFICIENT_STORAGE = new Status(507);

/**
Expand Down Expand Up @@ -524,7 +535,9 @@ public final class Status {
*
* @see <a href="http://www.webdav.org/specs/rfc2518.html#STATUS_207">WEBDAV RFC
* - 10.2 207 Multi-Status</a>
* @deprecated Will be removed in next version.
*/
@Deprecated
public static final Status SUCCESS_MULTI_STATUS = new Status(207);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,7 @@ public void registerDefaultConverters() {
/**
* Registers the default protocols.
*/
@SuppressWarnings("deprecation")
public void registerDefaultProtocols() {
getRegisteredProtocols().add(new org.restlet.engine.connector.HttpProtocolHelper());
getRegisteredProtocols().add(new org.restlet.engine.connector.WebDavProtocolHelper());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
* Protocol helper for the WEBDAV protocol.
*
* @author Thierry Boileau
* @deprecated Will be removed in next version.
*/
@Deprecated
public class WebDavProtocolHelper extends ProtocolHelper {

@Override
Expand Down

0 comments on commit bc0d50a

Please sign in to comment.