trait SimpleRouter extends Router
A simple router that implements the withPrefix and documentation methods for you.
- Self Type
- SimpleRouter
- Source
- Router.scala
- Alphabetic
- By Inheritance
- SimpleRouter
- Router
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
/:(prefix: String): Router
An alternative syntax for
withPrefix
.An alternative syntax for
withPrefix
. For example:val router = "/bar" /: barRouter
- Definition Classes
- Router
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJava: routing.Router
- Definition Classes
- Router
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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
- SimpleRouter → Router
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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
- SimpleRouter → Router