aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/restapi/Path.java
diff options
context:
space:
mode:
authorJon Marius Venstad <jonmv@users.noreply.github.com>2020-11-20 21:34:38 +0100
committerGitHub <noreply@github.com>2020-11-20 21:34:38 +0100
commit278967c98483da6b1308d34bd7b2b77e2f690288 (patch)
tree13d63c2853a56d59af6129e0808c9cbe55390c2f /container-core/src/main/java/com/yahoo/restapi/Path.java
parentfb522c0858a32c02ff0c49217a5ed7937d563921 (diff)
Revert "Jonmv/reindexing rest api"
Diffstat (limited to 'container-core/src/main/java/com/yahoo/restapi/Path.java')
-rw-r--r--container-core/src/main/java/com/yahoo/restapi/Path.java18
1 files changed, 18 insertions, 0 deletions
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<String, String> 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, "");
}