File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
http-api/src/main/java/io/avaje/http/api Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 99 * like <code>chair;vendor=ikea;size=small</code>.
1010 * <p>
1111 * Matrix parameters are optional 'qualifiers' of the path segment.
12- * </p>
1312 */
14- public class PathSegment {
13+ public final class PathSegment {
1514
1615 private final String val ;
1716
@@ -45,10 +44,8 @@ public PathSegment(String value) {
4544 * Return the main segment value.
4645 * <p>
4746 * For "chair" this returns "chair"
48- * </p>
4947 * <p>
5048 * For "chair;vendor=ikea;size=small" this returns "chair"
51- * </p>
5249 */
5350 public String val () {
5451 return val ;
@@ -58,13 +55,11 @@ public String val() {
5855 * Return a metric value for the given key.
5956 * <p>
6057 * For example, given "chair;vendor=ikea;size=small"
61- * </p>
6258 * <p>
63- * metric("vendor") returns "ikea".
64- * </p>
59+ * matrix("vendor") returns "ikea".
6560 *
66- * @param key The metric key
67- * @return The metric value if supplied or null
61+ * @param key The matrix key
62+ * @return The matrix value if supplied or null
6863 */
6964 public String matrix (String key ) {
7065 return matrixValues == null ? null : matrixValues .get (key );
Original file line number Diff line number Diff line change 99 * <p/>
1010 * These methods are intended to be used by APT source generators.
1111 */
12- public class PathTypeConversion {
12+ public final class PathTypeConversion {
1313
1414 /**
1515 * Return the value if non-null and otherwise the default value.
You can’t perform that action at this time.
0 commit comments