c

play.api.routing

SimpleRouterImpl

class SimpleRouterImpl extends SimpleRouter

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

Instance Constructors

  1. new SimpleRouterImpl(routesProvider: => Routes)

Value Members

  1. final def /:(prefix: String): Router

    An alternative syntax for withPrefix.

    An alternative syntax for withPrefix. For example:

    val router = "/bar" /: barRouter
    Definition Classes
    Router
  2. def asJava: routing.Router
    Definition Classes
    Router
  3. def documentation: Seq[(String, String, String)]

    Documentation for the router.

    Documentation for the router.

    returns

    A list of method, path pattern and controller/method invocations for each route.

    Definition Classes
    Router
  4. final def handlerFor(request: RequestHeader): Option[Handler]

    A lifted version of the routes partial function.

    A lifted version of the routes partial function.

    Definition Classes
    Router
  5. final def orElse(other: Router): Router

    Compose two routers into one.

    Compose two routers into one. The resulting router will contain both the routes in this as well as router

    Definition Classes
    Router
  6. def routes: Routes

    The actual routes of the router.

    The actual routes of the router.

    Definition Classes
    Router
  7. def withPrefix(prefix: String): Router

    Get a new router that routes requests to s"$prefix/$path" in the same way this router routes requests to path.

    Get a new router that routes requests to s"$prefix/$path" in the same way this router routes requests to path.

    returns

    the prefixed router

    Definition Classes
    Router