RouteMatcher

wvlet.airframe.http.router.RouteMatcher$
See theRouteMatcher companion trait
object RouteMatcher extends LogSupport

Attributes

Companion:
trait
Graph
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

case class ConstantPathMapping(pathPrefix: String, index: Int, name: String, matchedRoute: Option[Route]) extends PathMapping

Mapping an exact path component name to Routes.

Mapping an exact path component name to Routes.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
class FastRouteMatcher(targetMethod: String, routes: Seq[Route]) extends RouteMatcher with LogSupport

DFA-based RouterMatcher

DFA-based RouterMatcher

Attributes

Graph
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
case object Init extends PathMapping

Initial state

Initial state

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
Init.type
sealed trait PathMapping

Define an operation when matching path component is found (e.g., binding path components to matching path variables)

Define an operation when matching path component is found (e.g., binding path components to matching path variables)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class PathSequenceMapping(pathPrefix: String, index: Int, varName: String, matchedRoute: Option[Route]) extends PathMapping

*(varname) syntax. Matching the tail of path components to a single variable.

*(varname) syntax. Matching the tail of path components to a single variable.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

A set of RouteMatchers for different HTTP method types

A set of RouteMatchers for different HTTP method types

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
case class VariableMapping(pathPrefix: String, index: Int, varName: String, matchedRoute: Option[Route]) extends PathMapping

Mapping a variable in the path. For example, /v1/user/:id has a variable 'id'.

Mapping a variable in the path. For example, /v1/user/:id has a variable 'id'.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def build(routes: Seq[Route]): RouteMatcher

Inherited methods

inline protected def debug(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def debug(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def logAt(inline logLevel: LogLevel, inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods