A PathMatcher that matches and extracts a Double value.
A PathMatcher that matches and extracts a Double value. The matched string representation is the pure decimal, optionally signed form of a double value, i.e. without exponent.
A PathMatcher that efficiently matches a number of hex-digits and extracts their (non-negative) Int value.
A PathMatcher that efficiently matches a number of hex-digits and extracts their (non-negative) Long value.
A PathMatcher that efficiently matches a number of digits and extracts their (non-negative) Int value.
A PathMatcher that matches and extracts a java.
A PathMatcher that matches and extracts a java.util.UUID instance.
A PathMatcher that efficiently matches a number of digits and extracts their (non-negative) Long value.
A PathMatcher that always matches, doesn't consume anything and extracts nothing.
A PathMatcher that always matches, doesn't consume anything and extracts nothing. Serves mainly as a neutral element in PathMatcher composition.
A PathMatcher that matches the very end of the requests URI path.
A PathMatcher that matches and extracts the complete remaining, unmatched part of the request's URI path as an (encoded!) String.
A PathMatcher that matches and extracts the complete remaining, unmatched part of the request's URI path.
A PathMatcher that matches if the unmatched path starts with a path segment.
A PathMatcher that matches all remaining segments as a List[String].
A PathMatcher that matches all remaining segments as a List[String]. This can also be no segments resulting in the empty list. If the path has a trailing slash this slash will *not* be matched.
A PathMatcher that matches a single slash character ('/').
A PathMatcher that never matches.
A PathMatcher that never matches.
Tries to consume a leading slash from the unmatched path of the spray.routing.RequestContext before applying the given matcher.
Tries to consume a leading slash from the unmatched path of the spray.routing.RequestContext before applying the given matcher. The matcher has to match the remaining path completely or leave only a single trailing slash. If matched the value extracted by the PathMatcher is extracted on the directive level.
Rejects the request if the unmatchedPath of the spray.RequestContext is non-empty, or said differently: only passes on the request to its inner route if the request path has been matched completely.
Only passes on the request to its inner route if the request path has been matched completely or only consists of exactly one remaining slash.
Tries to consume a leading slash from the unmatched path of the spray.routing.RequestContext before applying the given matcher.
Tries to consume a leading slash from the unmatched path of the spray.routing.RequestContext before applying the given matcher. The matcher has to match a prefix of the remaining path. If matched the value extracted by the PathMatcher is extracted on the directive level.
Checks whether the unmatchedPath of the spray.RequestContext has a prefix matched by the given PathMatcher.
Checks whether the unmatchedPath of the spray.RequestContext has a prefix matched by the
given PathMatcher. In analogy to the pathPrefix
directive a leading slash is implied.
Only passes on the request to its inner route if the request path consists of exactly one remaining slash.
Rejects the request if the unmatchedPath of the spray.RequestContext does not have a suffix matched the given PathMatcher.
Rejects the request if the unmatchedPath of the spray.RequestContext does not have a suffix
matched the given PathMatcher. If matched the value extracted by the PathMatcher is extracted
and the matched parts of the path are consumed.
Note that, for efficiency reasons, the given PathMatcher must match the desired suffix in reversed-segment
order, i.e. pathSuffix("baz" / "bar")
would match /foo/bar/baz
!
Checks whether the unmatchedPath of the spray.RequestContext has a suffix matched by the given PathMatcher.
Checks whether the unmatchedPath of the spray.RequestContext has a suffix matched by the
given PathMatcher. However, as opposed to the pathSuffix directive the matched path is not
actually "consumed".
Note that, for efficiency reasons, the given PathMatcher must match the desired suffix in reversed-segment
order, i.e. pathSuffixTest("baz" / "bar")
would match /foo/bar/baz
!
Applies the given matcher directly to the unmatched path of the spray.routing.RequestContext (i.
Applies the given matcher directly to the unmatched path of the spray.routing.RequestContext (i.e. without implicitly consuming a leading slash). The matcher has to match a prefix of the remaining path. If matched the value extracted by the PathMatcher is extracted on the directive level.
Checks whether the unmatchedPath of the spray.RequestContext has a prefix matched by the given PathMatcher.
Checks whether the unmatchedPath of the spray.RequestContext has a prefix matched by the
given PathMatcher. However, as opposed to the pathPrefix
directive the matched path is not
actually "consumed".
Creates a PathMatcher that consumes (a prefix of) the first path segment if the path begins with a segment (a prefix of) which matches the given regex.
Creates a PathMatcher that consumes (a prefix of) the first path segment if the path begins with a segment (a prefix of) which matches the given regex. Extracts either the complete match (if the regex doesn't contain a capture group) or the capture group (if the regex contains exactly one). If the regex contains more than one capture group the method throws an IllegalArgumentException.
Creates a PathMatcher that consumes (a prefix of) the first path segment (if the path begins with a segment).
Creates a PathMatcher that consumes (a prefix of) the first path segment (if the path begins with a segment).
Converts a path string containing slashes into a PathMatcher that interprets slashes as path segment separators.
Converts a path string containing slashes into a PathMatcher that interprets slashes as path segment separators.
Creates a PathMatcher that consumes (a prefix of) the first path segment (if the path begins with a segment) and extracts a given value.
Creates a PathMatcher that consumes (a prefix of) the first path segment (if the path begins with a segment) and extracts a given value.
Creates a PathMatcher from the given Map of path segments (prefixes) to extracted values.
Creates a PathMatcher from the given Map of path segments (prefixes) to extracted values. If the unmatched path starts with a segment having one of the maps keys as a prefix the matcher consumes this path segment (prefix) and extracts the corresponding map value.
(Since version 1.0-M8/1.1-M8) Use Segment
instead