diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2020-11-20 21:34:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-20 21:34:38 +0100 |
commit | 278967c98483da6b1308d34bd7b2b77e2f690288 (patch) | |
tree | 13d63c2853a56d59af6129e0808c9cbe55390c2f /container-core | |
parent | fb522c0858a32c02ff0c49217a5ed7937d563921 (diff) |
Revert "Jonmv/reindexing rest api"
Diffstat (limited to 'container-core')
-rw-r--r-- | container-core/src/main/java/com/yahoo/restapi/Path.java | 18 |
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, ""); } |