Packages

  • package root
    Definition Classes
    root
  • package play

    Play framework.

    Play framework.

    Play

    http://www.playframework.com

    Definition Classes
    root
  • package api

    Contains the public API for Scala developers.

    Contains the public API for Scala developers.

    Access the current Play application
    import play.api.Play.current
    Read configuration
    val poolSize = configuration.getInt("engine.pool.size")
    Use the logger
    Logger.info("Hello!")
    Define a Plugin
    class MyPlugin(app: Application) extends Plugin
    Create adhoc applications (for testing)
    val application = Application(new File("."), this.getClass.getClassloader, None, Play.Mode.DEV)
    Definition Classes
    play
  • package routing
    Definition Classes
    api
  • package sird

    The Play "String Interpolating Routing DSL", sird for short.

    The Play "String Interpolating Routing DSL", sird for short.

    This provides: - Extractors for requests that extract requests by method, eg GET, POST etc. - A string interpolating path extractor - Extractors for binding parameters from paths to various types, eg int, long, double, bool.

    The request method extractors return the original request for further extraction.

    The path extractor supports three kinds of extracted values: - Path segment values. This is the default, eg p"/foo/$id". The value will be URI decoded, and may not traverse /'s. - Full path values. This can be indicated by post fixing the value with a *, eg p"/assets/$path*". The value will not be URI decoded, as that will make it impossible to distinguish between / and %2F. - Regex values. This can be indicated by post fixing the value with a regular expression enclosed in angle brackets. For example, p"/foo/$id<[0-9]+>. The value will not be URI decoded.

    The extractors for primitive types are merely provided for convenience, for example, p"/foo/${int(id)}" will extract id as an integer. If id is not an integer, the match will simply fail.

    Example usage:

    import play.api.routing.sird._
    import play.api.routing._
    import play.api.mvc._
    
    Router.from {
      case GET(p"/hello/$to") => Action {
        Results.Ok(s"Hello $to")
      }
      case PUT(p"/api/items/${int(id)}") => Action.async { req =>
        Items.save(id, req.body.json.as[Item]).map { _ =>
          Results.Ok(s"Saved item $id")
        }
      }
    }
    Definition Classes
    routing
  • HandlerDef
  • JavaScriptReverseRoute
  • JavaScriptReverseRouter
  • Router
  • SimpleRouter
  • SimpleRouterImpl
c

play.api.routing

HandlerDef

case class HandlerDef(classLoader: ClassLoader, routerPackage: String, controller: String, method: String, parameterTypes: Seq[Class[_]], verb: String, path: String, comments: String = "", modifiers: Seq[String] = Seq.empty) extends routing.HandlerDef with Product with Serializable

Information about a Handler, especially useful for loading the handler with reflection.

Source
HandlerDef.scala
Linear Supertypes
Serializable, Product, Equals, routing.HandlerDef, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HandlerDef
  2. Serializable
  3. Product
  4. Equals
  5. HandlerDef
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HandlerDef(classLoader: ClassLoader, routerPackage: String, controller: String, method: String, parameterTypes: Seq[Class[_]], verb: String, path: String, comments: String = "", modifiers: Seq[String] = Seq.empty)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val classLoader: ClassLoader
    Definition Classes
    HandlerDef → HandlerDef
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val comments: String
    Definition Classes
    HandlerDef → HandlerDef
  8. val controller: String
    Definition Classes
    HandlerDef → HandlerDef
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def getModifiers(): List[String]
    Definition Classes
    HandlerDef
  13. def getParameterTypes(): List[Class[_ <: AnyRef]]
    Definition Classes
    HandlerDef
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. val method: String
    Definition Classes
    HandlerDef → HandlerDef
  16. val modifiers: Seq[String]
    Definition Classes
    HandlerDef → HandlerDef
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. val parameterTypes: Seq[Class[_]]
    Definition Classes
    HandlerDef → HandlerDef
  21. val path: String
    Definition Classes
    HandlerDef → HandlerDef
  22. def productElementNames: Iterator[String]
    Definition Classes
    Product
  23. val routerPackage: String
    Definition Classes
    HandlerDef → HandlerDef
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. val verb: String
    Definition Classes
    HandlerDef → HandlerDef
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from routing.HandlerDef

Inherited from AnyRef

Inherited from Any

Ungrouped