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.

    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 mvc

    Contains the Controller/Action/Result API to handle HTTP requests.

    Contains the Controller/Action/Result API to handle HTTP requests.

    For example, a typical controller:

    class HomeController @Inject() (val controllerComponents: ControllerComponents) extends BaseController {
    
      def index = Action {
        Ok("It works!")
      }
    
    }
    Definition Classes
    api
  • object PathBindable extends PathBindableMacros

    Default binders for URL path part.

    Default binders for URL path part.

    Definition Classes
    mvc
  • Parsing
  • bindableBoolean
  • bindableChar
  • bindableDouble
  • bindableFloat
  • bindableInt
  • bindableLong
  • bindableString
  • bindableUUID
o

play.api.mvc.PathBindable

bindableDouble

implicit object bindableDouble extends Parsing[Double]

Path binder for Double.

Source
Binders.scala
Linear Supertypes
Parsing[Double], PathBindable[Double], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. bindableDouble
  2. Parsing
  3. PathBindable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def bind(key: String, value: String): Either[String, Double]

    Bind an URL path parameter.

    Bind an URL path parameter.

    key

    Parameter key

    value

    The value as String (extracted from the URL path)

    returns

    Right of the value or Left of an error message if the binding failed

    Definition Classes
    ParsingPathBindable
  2. def javascriptUnbind: String

    Javascript function to unbind in the Javascript router.

    Javascript function to unbind in the Javascript router.

    Definition Classes
    PathBindable
  3. def transform[B](toB: (Double) => B, toA: (B) => Double): PathBindable[B]

    Transform this PathBinding[A] to PathBinding[B]

    Transform this PathBinding[A] to PathBinding[B]

    Definition Classes
    PathBindable
  4. def unbind(key: String, value: Double): String

    Unbind a URL path parameter.

    Unbind a URL path parameter.

    key

    Parameter key

    value

    Parameter value.

    Definition Classes
    ParsingPathBindable