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
Show all
Self type

Members list

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

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

DFA-based RouterMatcher

DFA-based RouterMatcher

Attributes

Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait RouteMatcher
class Object
trait Matchable
class Any
Show all
case object Init extends PathMapping

Initial state

Initial state

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait PathMapping
class Object
trait Matchable
class Any
Show all
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

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

Supertypes
trait Serializable
trait Product
trait Equals
trait PathMapping
class Object
trait Matchable
class Any
Show all
class RouteMatcherByHttpMethodTypes(routes: Seq[Route]) extends RouteMatcher

A set of RouteMatchers for different HTTP method types

A set of RouteMatchers for different HTTP method types

Attributes

Supertypes
trait RouteMatcher
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

Supertypes
trait Serializable
trait Product
trait Equals
trait PathMapping
class Object
trait Matchable
class Any
Show all

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