PathMatcher

pl.iterators.stir.server.PathMatcher
See thePathMatcher companion class

Attributes

Companion
class
Source
PathMatcher.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

implicit class EnhancedPathMatcher[L](underlying: PathMatcher[L])

Attributes

Source
PathMatcher.scala
Supertypes
class Object
trait Matchable
class Any
object Lift extends LowLevelLiftImplicits

Attributes

Companion
trait
Source
PathMatcher.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Lift.type
sealed trait Lift[L, M[_]]

Attributes

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

Attributes

Source
PathMatcher.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Lift
case class Matched[L](pathRest: Path, extractions: L)(implicit evidence$1: Tuple[L]) extends Matching[L]

Attributes

Companion
object
Source
PathMatcher.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Matching[L]
class Object
trait Matchable
class Any
Show all
object Matched

Attributes

Companion
class
Source
PathMatcher.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Matched.type
sealed abstract class Matching[+L]

Attributes

Source
PathMatcher.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Matched[L]
object Unmatched
implicit class PathMatcher1Ops[T](matcher: PathMatcher1[T])

Attributes

Source
PathMatcher.scala
Supertypes
class Object
trait Matchable
class Any
case object Unmatched extends Matching[Nothing]

Attributes

Source
PathMatcher.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Matching[Nothing]
class Object
trait Matchable
class Any
Show all
Self type
Unmatched.type

Value members

Concrete methods

def apply[L : Tuple](prefix: Path, extractions: L): PathMatcher[L]

Creates a PathMatcher that matches and consumes the given path prefix and extracts the given list of extractions. If the given prefix is empty the returned PathMatcher matches always and consumes nothing.

Creates a PathMatcher that matches and consumes the given path prefix and extracts the given list of extractions. If the given prefix is empty the returned PathMatcher matches always and consumes nothing.

Attributes

Source
PathMatcher.scala
def apply[L](magnet: PathMatcher[L]): PathMatcher[L]

Provoke implicit conversions to PathMatcher to be applied

Provoke implicit conversions to PathMatcher to be applied

Attributes

Source
PathMatcher.scala
def provide[L : Tuple](extractions: L): PathMatcher[L]

Creates a PathMatcher that always matches, consumes nothing and extracts the given Tuple of values.

Creates a PathMatcher that always matches, consumes nothing and extracts the given Tuple of values.

Attributes

Source
PathMatcher.scala

Implicits

Implicits

final implicit def EnhancedPathMatcher[L](underlying: PathMatcher[L]): EnhancedPathMatcher[L]

Attributes

Source
PathMatcher.scala
final implicit def PathMatcher1Ops[T](matcher: PathMatcher1[T]): PathMatcher1Ops[T]

Attributes

Source
PathMatcher.scala

Inherited implicits

implicit def _regex2PathMatcher(regex: Regex): PathMatcher1[String]

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

Attributes

Inherited from:
ImplicitPathMatcherConstruction
Source
PathMatcher.scala

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

Attributes

Inherited from:
ImplicitPathMatcherConstruction
Source
PathMatcher.scala
implicit def _stringExtractionPair2PathMatcher[T](tuple: (String, T)): PathMatcher1[T]

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.

Attributes

Inherited from:
ImplicitPathMatcherConstruction
Source
PathMatcher.scala
implicit def _valueMap2PathMatcher[T](valueMap: Map[String, T]): PathMatcher1[T]

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. For keys sharing a common prefix the longest matching prefix is selected.

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. For keys sharing a common prefix the longest matching prefix is selected.

Attributes

Inherited from:
ImplicitPathMatcherConstruction
Source
PathMatcher.scala