From b8137c5a141e4af2f045ff97c2a20e2034bd311c Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Wed, 4 May 2022 07:16:03 -0500 Subject: [PATCH] Issue #7891 - Add toString() impls Signed-off-by: Joakim Erdfelt --- .../org/eclipse/jetty/http/pathmap/RegexPathSpec.java | 10 ++++++++++ .../jetty/http/pathmap/UriTemplatePathSpec.java | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/RegexPathSpec.java b/jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/RegexPathSpec.java index c33e153d5079..140a544187eb 100644 --- a/jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/RegexPathSpec.java +++ b/jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/RegexPathSpec.java @@ -337,5 +337,15 @@ public String getPathInfo() // default is null return null; } + + @Override + public String toString() + { + return "RegexMatchedPath[" + + "pathSpec=" + pathSpec + + ", path=\"" + path + "\"" + + ", matcher=" + matcher + + ']'; + } } } diff --git a/jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/UriTemplatePathSpec.java b/jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/UriTemplatePathSpec.java index 23442801e7db..05aff17e690e 100644 --- a/jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/UriTemplatePathSpec.java +++ b/jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/UriTemplatePathSpec.java @@ -487,5 +487,15 @@ public String getPathInfo() } return null; } + + @Override + public String toString() + { + return "UriTemplateMatchedPath[" + + "pathSpec=" + pathSpec + + ", path=\"" + path + "\"" + + ", matcher=" + matcher + + ']'; + } } }