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 MultipartFormData extends Serializable

    Defines parts handled by Multipart form data.

    Defines parts handled by Multipart form data.

    Definition Classes
    mvc
  • BadPart
  • DataPart
  • FilePart
  • MaxMemoryBufferExceeded
  • ParseError
  • Part

case class FilePart[A](key: String, filename: String, contentType: Option[String], ref: A, fileSize: Long = -1, dispositionType: String = "form-data", refToBytes: (A) => Option[ByteString] = (a: A) => None) extends Part[A] with Product with Serializable

A file part.

Source
BodyParsers.scala
Linear Supertypes
Serializable, Product, Equals, Part[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FilePart
  2. Serializable
  3. Product
  4. Equals
  5. Part
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new FilePart(key: String, filename: String, contentType: Option[String], ref: A, fileSize: Long = -1, dispositionType: String = "form-data", refToBytes: (A) => Option[ByteString] = (a: A) => None)

Value Members

  1. def asJava(): mvc.Http.MultipartFormData.FilePart[A]
  2. val contentType: Option[String]
  3. val dispositionType: String
  4. val fileSize: Long
  5. val filename: String
  6. val key: String
  7. def productElementNames: Iterator[String]
    Definition Classes
    Product
  8. val ref: A
  9. val refToBytes: (A) => Option[ByteString]
  10. def transformRefToBytes(): ByteString