Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/PathSpec.java')
-rw-r--r--jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/PathSpec.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/PathSpec.java b/jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/PathSpec.java
index a2b8ea56cf..8a1f82b7bb 100644
--- a/jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/PathSpec.java
+++ b/jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/PathSpec.java
@@ -27,6 +27,8 @@ public abstract class PathSpec implements Comparable<PathSpec>
protected PathSpecGroup group;
protected int pathDepth;
protected int specLength;
+ protected String prefix;
+ protected String suffix;
@Override
public int compareTo(PathSpec other)
@@ -125,6 +127,24 @@ public abstract class PathSpec implements Comparable<PathSpec>
}
/**
+ * A simple prefix match for the pathspec or null
+ * @return A simple prefix match for the pathspec or null
+ */
+ public String getPrefix()
+ {
+ return prefix;
+ }
+
+ /**
+ * A simple suffix match for the pathspec or null
+ * @return A simple suffix match for the pathspec or null
+ */
+ public String getSuffix()
+ {
+ return suffix;
+ }
+
+ /**
* Get the relative path.
*
* @param base

Back to the top