object Router

Utilities for routing.

Source
Router.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Router
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Routes = PartialFunction[, Handler]

    The type of the routes partial function

Value Members

  1. def concatPrefix(newPrefix: String, existingPrefix: String): String

    Concatenate another prefix with an existing prefix, collapsing extra slashes.

    Concatenate another prefix with an existing prefix, collapsing extra slashes. If the existing prefix is empty or "/" then the new prefix replaces the old one. Otherwise the new prefix is prepended to the old one with a slash in between, ignoring a final slash in the new prefix or an initial slash in the existing prefix.

  2. val empty: Router

    An empty router.

    An empty router.

    Never returns an handler from the routes function.

  3. def from(routes: Routes): Router

    Create a new router from the given partial function

    Create a new router from the given partial function

    routes

    The routes partial function

    returns

    A router that uses that partial function

  4. def load(env: Environment, configuration: Configuration): Option[Class[_ <: Router]]

    Try to load the configured router class.

    Try to load the configured router class.

    returns

    The router class if configured or if a default one in the root package was detected.

  5. object Attrs

    Request attributes used by the router.

  6. object RequestImplicits