package routing
The play.core.routing package contains all the code necessary for Play's code generated routers.
- Source
- package.scala
- Alphabetic
- By Inheritance
- routing
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class DynamicPart(name: String, constraint: String, encodeable: Boolean) extends PathPart with Product with Serializable
A dynamically extracted part of the path.
A dynamically extracted part of the path.
- name
The name of the part.
- constraint
The constraint - that is, the type.
- encodeable
Whether the path should be encoded/decoded.
- abstract class GeneratedRouter extends Router
A generated router.
- trait HandlerInvoker[-T] extends AnyRef
An object that, when invoked with a thunk, produces a
Handler
that wraps that thunk.An object that, when invoked with a thunk, produces a
Handler
that wraps that thunk. Constructed by aHandlerInvokerFactory
. - trait HandlerInvokerFactory[-T] extends AnyRef
An object that creates a
HandlerInvoker
.An object that creates a
HandlerInvoker
. Used by thecreateInvoker
method to create aHandlerInvoker
for each route. TheRoutes.createInvoker
method looks for an implicitHandlerInvokerFactory
and uses that to create aHandlerInvoker
.- Annotations
- @implicitNotFound("Cannot use a method returning ${T} as a Handler for requests")
- class Include extends AnyRef
An included router
- case class Param[T](name: String, value: Either[String, T]) extends Product with Serializable
- trait PathPart extends AnyRef
A part of a path.
- case class PathPattern(parts: Seq[PathPart]) extends Product with Serializable
A pattern for match paths, consisting of a sequence of path parts.
- case class ReverseRouteContext(fixedParams: Map[String, Any]) extends Product with Serializable
The context for a reverse route.
The context for a reverse route.
This is made available implicitly to PathBindables and QueryStringBindables in the reverse router so that they can query the fixed params that are passed to the action.
An empty reverse router context is made available implicitly to the router and JavaScript router.
- fixedParams
The fixed params that this route passes to the action.
- case class RouteParams(path: Map[String, Either[Throwable, String]], queryString: Map[String, Seq[String]]) extends Product with Serializable
- case class StaticPart(value: String) extends PathPart with Product with Serializable
A static part of the path.
Value Members
- def dynamicString(dynamic: String): String
- def queryString(items: List[Option[String]]): String
- object HandlerInvokerFactory
- object Include
An included router
- object ReverseRouteContext extends Serializable
- object Route
A route