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 libs

    Contains various APIs that are useful while developing web applications.

    Contains various APIs that are useful while developing web applications.

    Definition Classes
    api
  • package concurrent
    Definition Classes
    libs
  • package crypto
    Definition Classes
    libs
  • package functional
    Definition Classes
    libs
  • package jcache
    Definition Classes
    libs
  • package json

    Json API For example:

    Json API For example:

    import play.api.libs.json._
    import play.api.libs.functional.syntax._
    
    case class User(id: Long, name: String, friends: Seq[User] = Seq.empty)
    object User {
    
      // In this format, an undefined friends property is mapped to an empty list
      implicit val format: Format[User] = (
        (__ \ "id").format[Long] and
        (__ \ "name").format[String] and
        (__ \ "friends").lazyFormatNullable(implicitly[Format[Seq[User]]])
          .inmap[Seq[User]](_ getOrElse Seq.empty, Some(_))
      )(User.apply, unlift(User.unapply))
    }
    
    //then in a controller:
    
    object MyController extends Controller {
       def displayUserAsJson(id: String) = Action {
          Ok(Json.toJson(User(id.toLong, "myName")))
       }
       def saveUser(jsonString: String)= Action {
         val user = Json.parse(jsonString).as[User]
         myDataStore.save(user)
         Ok
       }
    }
    Definition Classes
    libs
  • package logback
    Definition Classes
    libs
  • package openid
    Definition Classes
    libs
  • Discovery
  • Errors
  • OpenIDComponents
  • OpenIDError
  • OpenIDModule
  • OpenIDServer
  • OpenIdClient
  • UserInfo
  • WsDiscovery
  • WsOpenIdClient
  • package streams
    Definition Classes
    libs
  • package typedmap
    Definition Classes
    libs
  • package ws

    Provides implicit type classes when you import the package.

    Provides implicit type classes when you import the package.

    Definition Classes
    libs
p

play.api.libs

openid

package openid

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait Discovery extends AnyRef
  2. trait OpenIDComponents extends AnyRef

    OpenID components

  3. sealed abstract class OpenIDError extends Throwable
  4. class OpenIDModule extends SimpleModule

    The OpenID module

  5. case class OpenIDServer(protocolVersion: String, url: String, delegate: Option[String]) extends Product with Serializable
  6. trait OpenIdClient extends AnyRef
  7. case class UserInfo(id: String, attributes: Map[String, String] = Map.empty) extends Product with Serializable
  8. class WsDiscovery extends Discovery

    Resolve the OpenID identifier to the location of the user's OpenID service provider.

    Resolve the OpenID identifier to the location of the user's OpenID service provider.

    Known limitations:

    * The Discovery doesn't support XRIs at the moment

    Annotations
    @Singleton()
  9. class WsOpenIdClient extends OpenIdClient with WSBodyWritables
    Annotations
    @Singleton()

Value Members

  1. object Errors
  2. object UserInfo extends Serializable

    provides user information for a verified user

Ungrouped