Class LiteralPathSegment
java.lang.Object
io.github.grumpystuff.grumpyrest.request.path.PathSegment
io.github.grumpystuff.grumpyrest.request.path.LiteralPathSegment
This segment only matches a request path segment with the exact same text.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.github.grumpystuff.grumpyrest.request.path.PathSegment
parse
-
Constructor Details
-
LiteralPathSegment
Constructor.- Parameters:
text- the expected text for the request path segment
-
-
Method Details
-
getText
Getter method for the segment text- Returns:
- the text
-
matches
Description copied from class:PathSegmentChecks whether this segment matches a segment of a path from an incoming request.- Specified by:
matchesin classPathSegment- Parameters:
segment- the request path segment- Returns:
- true if the segment matches, false if not
-
toString
-