PathMatchers

pl.iterators.stir.server.PathMatchers
See thePathMatchers companion object
trait PathMatchers

Attributes

Companion
object
Source
PathMatcher.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Classlikes

object HexIntNumber extends NumberMatcher[Int]

A PathMatcher that efficiently matches a number of hex-digits and extracts their (non-negative) Int value. The matcher will not match 0 digits or a sequence of digits that would represent an Int value larger than Int.MaxValue.

A PathMatcher that efficiently matches a number of hex-digits and extracts their (non-negative) Int value. The matcher will not match 0 digits or a sequence of digits that would represent an Int value larger than Int.MaxValue.

Attributes

Source
PathMatcher.scala
Supertypes
trait Path => Matching[Tuple1[Int]]
class Object
trait Matchable
class Any
Show all
Self type
object HexLongNumber extends NumberMatcher[Long]

A PathMatcher that efficiently matches a number of hex-digits and extracts their (non-negative) Long value. The matcher will not match 0 digits or a sequence of digits that would represent an Long value larger than Long.MaxValue.

A PathMatcher that efficiently matches a number of hex-digits and extracts their (non-negative) Long value. The matcher will not match 0 digits or a sequence of digits that would represent an Long value larger than Long.MaxValue.

Attributes

Source
PathMatcher.scala
Supertypes
trait Path => Matching[Tuple1[Long]]
class Object
trait Matchable
class Any
Show all
Self type
object IntNumber extends NumberMatcher[Int]

A PathMatcher that efficiently matches a number of digits and extracts their (non-negative) Int value. The matcher will not match 0 digits or a sequence of digits that would represent an Int value larger than Int.MaxValue.

A PathMatcher that efficiently matches a number of digits and extracts their (non-negative) Int value. The matcher will not match 0 digits or a sequence of digits that would represent an Int value larger than Int.MaxValue.

Attributes

Source
PathMatcher.scala
Supertypes
trait Path => Matching[Tuple1[Int]]
class Object
trait Matchable
class Any
Show all
Self type
IntNumber.type
object LongNumber extends NumberMatcher[Long]

A PathMatcher that efficiently matches a number of digits and extracts their (non-negative) Long value. The matcher will not match 0 digits or a sequence of digits that would represent an Long value larger than Long.MaxValue.

A PathMatcher that efficiently matches a number of digits and extracts their (non-negative) Long value. The matcher will not match 0 digits or a sequence of digits that would represent an Long value larger than Long.MaxValue.

Attributes

Source
PathMatcher.scala
Supertypes
trait Path => Matching[Tuple1[Long]]
class Object
trait Matchable
class Any
Show all
Self type
LongNumber.type
abstract class NumberMatcher[T](max: T, base: T)(implicit x: Integral[T]) extends PathMatcher[Tuple1[T]]

Attributes

Source
PathMatcher.scala
Supertypes
class PathMatcher[Tuple1[T]]
trait Path => Matching[Tuple1[T]]
class Object
trait Matchable
class Any
Known subtypes
object HexIntNumber
object HexLongNumber
object IntNumber
object LongNumber
object PathEnd extends PathMatcher[Unit]

A PathMatcher that matches the very end of the requests URI path.

A PathMatcher that matches the very end of the requests URI path.

Attributes

Source
PathMatcher.scala
Supertypes
class PathMatcher[Unit]
trait Path => Matching[Unit]
class Object
trait Matchable
class Any
Self type
PathEnd.type
object Remaining extends PathMatcher[Tuple1[String]]

A PathMatcher that matches and extracts the complete remaining, unmatched part of the request's URI path as an (encoded!) String. If you need access to the remaining unencoded elements of the path use the RemainingPath matcher!

A PathMatcher that matches and extracts the complete remaining, unmatched part of the request's URI path as an (encoded!) String. If you need access to the remaining unencoded elements of the path use the RemainingPath matcher!

Attributes

Source
PathMatcher.scala
Supertypes
trait Path => Matching[Tuple1[String]]
class Object
trait Matchable
class Any
Self type
Remaining.type

A PathMatcher that matches and extracts the complete remaining, unmatched part of the request's URI path.

A PathMatcher that matches and extracts the complete remaining, unmatched part of the request's URI path.

Attributes

Source
PathMatcher.scala
Supertypes
trait Path => Matching[Tuple1[Path]]
class Object
trait Matchable
class Any
Self type
object Segment extends PathMatcher[Tuple1[String]]

A PathMatcher that matches if the unmatched path starts with a path segment. If so the path segment is extracted as a String.

A PathMatcher that matches if the unmatched path starts with a path segment. If so the path segment is extracted as a String.

Attributes

Source
PathMatcher.scala
Supertypes
trait Path => Matching[Tuple1[String]]
class Object
trait Matchable
class Any
Self type
Segment.type
object Slash extends PathMatcher[Unit]

A PathMatcher that matches a single slash character ('/').

A PathMatcher that matches a single slash character ('/').

Attributes

Source
PathMatcher.scala
Supertypes
class PathMatcher[Unit]
trait Path => Matching[Unit]
class Object
trait Matchable
class Any
Self type
Slash.type

Value members

Concrete methods

A PathMatcher that matches the given number of path segments (separated by slashes) as a List[String]. If there are more than count segments present the remaining ones will be left unmatched. If the path has a trailing slash this slash will not be matched.

A PathMatcher that matches the given number of path segments (separated by slashes) as a List[String]. If there are more than count segments present the remaining ones will be left unmatched. If the path has a trailing slash this slash will not be matched.

Attributes

Source
PathMatcher.scala
def Segments(min: Int, max: Int): PathMatcher1[List[String]]

A PathMatcher that matches between min and max (both inclusively) path segments (separated by slashes) as a List[String]. If there are more than count segments present the remaining ones will be left unmatched. If the path has a trailing slash this slash will not be matched.

A PathMatcher that matches between min and max (both inclusively) path segments (separated by slashes) as a List[String]. If there are more than count segments present the remaining ones will be left unmatched. If the path has a trailing slash this slash will not be matched.

Attributes

Source
PathMatcher.scala
def not(self: PathMatcher[_]): PathMatcher0

Attributes

Source
PathMatcher.scala

A PathMatcher that never matches anything.

A PathMatcher that never matches anything.

Attributes

Source
PathMatcher.scala

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.

Attributes

Source
PathMatcher.scala

Concrete fields

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 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.

Attributes

Source
PathMatcher.scala
val JavaUUID: PathMatcher1[UUID]

A PathMatcher that matches and extracts a java.util.UUID instance.

A PathMatcher that matches and extracts a java.util.UUID instance.

Attributes

Source
PathMatcher.scala

A PathMatcher that always matches, doesn't consume anything and extracts nothing. Serves mainly as a neutral element in PathMatcher composition.

A PathMatcher that always matches, doesn't consume anything and extracts nothing. Serves mainly as a neutral element in PathMatcher composition.

Attributes

Source
PathMatcher.scala

A PathMatcher that matches up to 128 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 up to 128 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.

Attributes

Source
PathMatcher.scala