Package io.avaje.http.api
Class PathSegment
- java.lang.Object
-
- io.avaje.http.api.PathSegment
-
public class PathSegment extends Object
A path segment that can simple like value likechair
or contain matrix parameter values using semi-colon delimitation likechair;vendor=ikea;size=small
.Matrix parameters are optional 'qualifiers' of the path segment.
-
-
Constructor Summary
Constructors Constructor Description PathSegment(String value)
Create with a given value that may contain matric parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
matrix(String key)
Return a metric value for the given key.static PathSegment
of(String value)
Create with a given value that may contain matrix parameters.String
val()
Return the main segment value.
-
-
-
Constructor Detail
-
PathSegment
public PathSegment(String value)
Create with a given value that may contain matric parameters.
-
-
Method Detail
-
of
public static PathSegment of(String value)
Create with a given value that may contain matrix parameters.
-
val
public String val()
Return the main segment value.For "chair" this returns "chair"
For "chair;vendor=ikea;size=small" this returns "chair"
-
-