p

play.routes

compiler

package compiler

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Package Members

  1. package inject
  2. package static

Type Members

  1. case class Comment(comment: String) extends Product with Serializable

    A comment from the routes file.

  2. case class DynamicPart(name: String, constraint: String, encode: Boolean) extends PathPart with Positional with Product with Serializable

    A dynamic part, which gets extracted into a parameter.

    A dynamic part, which gets extracted into a parameter.

    name

    The name of the parameter that this part of the path gets extracted into.

    constraint

    The regular expression used to match this part.

    encode

    Whether this part should be encoded or not.

  3. case class HandlerCall(packageName: Option[String], controller: String, instantiate: Boolean, method: String, parameters: Option[Seq[Parameter]]) extends Positional with Product with Serializable

    A call to the handler.

    A call to the handler.

    packageName

    The handlers package.

    controller

    The controllers class name.

    instantiate

    Whether the controller needs to be instantiated dynamically.

    method

    The method to invoke on the controller.

    parameters

    The parameters to pass to the method.

  4. case class HttpVerb(value: String) extends Product with Serializable

    An HTTP verb

  5. case class Include(prefix: String, router: String) extends Rule with Product with Serializable

    An include for another router

    An include for another router

    prefix

    The path prefix for the include

    router

    The router to route to

  6. case class Modifier(value: String) extends Product with Serializable

    A modifier tag in the routes file

  7. case class Parameter(name: String, typeName: String, fixed: Option[String], default: Option[String]) extends Positional with Product with Serializable

    A parameter for a controller method.

    A parameter for a controller method.

    name

    The name of the parameter.

    typeName

    The type of the parameter.

    fixed

    The fixed value for the parameter, if defined.

    default

    A default value for the parameter, if defined.

  8. trait PathPart extends AnyRef

    A part of the path

  9. case class PathPattern(parts: Seq[PathPart]) extends Product with Serializable

    A complete path pattern, consisting of a sequence of path parts.

  10. case class Route(verb: HttpVerb, path: PathPattern, call: HandlerCall, comments: Seq[Comment] = Seq.empty, modifiers: Seq[Modifier] = Seq.empty) extends Rule with Product with Serializable

    A route

    A route

    verb

    The verb (GET/POST etc)

    path

    The path of the route

    call

    The call to make

    comments

    The comments above the route

  11. case class RoutesCompilationError(source: File, message: String, line: Option[Int], column: Option[Int]) extends Product with Serializable

    A routes compilation error

    A routes compilation error

    source

    The source of the error

    message

    The error message

    line

    The line that the error occurred on

    column

    The column that the error occurred on

  12. trait RoutesGenerator extends AnyRef
  13. case class RoutesSourceInfo(source: String, date: String) extends Product with Serializable

    Information about the routes source file

  14. sealed trait Rule extends Positional

    A routing rule

  15. class ScalaContent extends BufferedContent[ScalaContent]

    Twirl scala content type

  16. case class StaticPart(value: String) extends PathPart with Product with Serializable

    A static part of the path, which is matched as is.

Value Members

  1. object InjectedRoutesGenerator extends RoutesGenerator

    A routes generator that generates dependency injected routers

  2. object Parameter extends Serializable
  3. object RoutesCompiler

    provides a compiler for routes

  4. object RoutesFileParser
  5. object ScalaFormat extends Format[ScalaContent]

    Twirl Scala format

Ungrouped