From 278967c98483da6b1308d34bd7b2b77e2f690288 Mon Sep 17 00:00:00 2001 From: Jon Marius Venstad Date: Fri, 20 Nov 2020 21:34:38 +0100 Subject: Revert "Jonmv/reindexing rest api" --- .../src/main/java/com/yahoo/restapi/Path.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'container-core') diff --git a/container-core/src/main/java/com/yahoo/restapi/Path.java b/container-core/src/main/java/com/yahoo/restapi/Path.java index 23a791e7532..fe65245fd15 100644 --- a/container-core/src/main/java/com/yahoo/restapi/Path.java +++ b/container-core/src/main/java/com/yahoo/restapi/Path.java @@ -42,6 +42,24 @@ public class Path { private final Map values = new HashMap<>(); private String rest = ""; + /** + * @deprecated use {@link #Path(URI)} for correct handling of URL encoded paths. + */ + @Deprecated + public Path(String path) { + this(path, ""); + } + + /** + * @deprecated use {@link #Path(URI, String)} for correct handling of URL encoded paths. + */ + @Deprecated + public Path(String path, String optionalPrefix) { + this.optionalPrefix = optionalPrefix; + this.pathString = path; + this.elements = path.split("/"); + } + public Path(URI uri) { this(uri, ""); } -- cgit v1.2.3