trait SimpleRouter extends Router
Ordering
- Alphabetic
- By Inheritance
Inherited
- SimpleRouter
- Router
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
Concrete Value Members
- final def /:(prefix: String): Router
An alternative syntax for
withPrefix
.An alternative syntax for
withPrefix
. For example:val router = "/bar" /: barRouter
- Definition Classes
- Router
- def asJava: routing.Router
- Definition Classes
- Router
- 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
- 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
- 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 asrouter
- Definition Classes
- Router
- def withPrefix(prefix: String): Router
Get a new router that routes requests to
s"$prefix/$path"
in the same way this router routes requests topath
.Get a new router that routes requests to
s"$prefix/$path"
in the same way this router routes requests topath
.- returns
the prefixed router
- Definition Classes
- → Router
A simple router that implements the withPrefix and documentation methods for you.