play.core.routing

The play.core.routing package contains all the code necessary for Play's code generated routers.

Attributes

Members list

Type members

Classlikes

case class DynamicPart(name: String, constraint: String, encodeable: Boolean) extends PathPart

A dynamically extracted part of the path.

A dynamically extracted part of the path.

Value parameters

constraint

The constraint - that is, the type.

encodeable

Whether the path should be encoded/decoded.

name

The name of the part.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PathPart
class Object
trait Matchable
class Any
Show all
abstract class GeneratedRouter extends Router

A generated router.

A generated router.

Attributes

Supertypes
trait Router
class Object
trait Matchable
class Any
trait HandlerInvoker[-T]

An object that, when invoked with a thunk, produces a Handler that wraps that thunk. Constructed by a HandlerInvokerFactory.

An object that, when invoked with a thunk, produces a Handler that wraps that thunk. Constructed by a HandlerInvokerFactory.

Attributes

Supertypes
class Object
trait Matchable
class Any

An object that creates a HandlerInvoker. Used by the createInvoker method to create a HandlerInvoker for each route. The Routes.createInvoker method looks for an implicit HandlerInvokerFactory and uses that to create a HandlerInvoker.

An object that creates a HandlerInvoker. Used by the createInvoker method to create a HandlerInvoker for each route. The Routes.createInvoker method looks for an implicit HandlerInvokerFactory and uses that to create a HandlerInvoker.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
class Include(val router: Router)

An included router

An included router

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Include

An included router

An included router

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Include.type
case class Param[T](name: String, value: Either[String, T])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait PathPart

A part of a path.

A part of a path.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class DynamicPart
class StaticPart
case class PathPattern(parts: Seq[PathPart])

A pattern for match paths, consisting of a sequence of path parts.

A pattern for match paths, consisting of a sequence of path parts.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ReverseRouteContext(fixedParams: Map[String, Any])

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.

Value parameters

fixedParams

The fixed params that this route passes to the action.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
object Route

A route

A route

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Route.type
case class RouteParams(path: Map[String, Either[Throwable, String]], queryString: Map[String, Seq[String]])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class StaticPart(value: String) extends PathPart

A static part of the path.

A static part of the path.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PathPart
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def dynamicString(dynamic: String): String
def queryString(items: List[Option[String]]): String