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 http

    Contains standard HTTP constants.

    Contains standard HTTP constants. For example:

    val text = ContentTypes.TEXT
    val ok = Status.OK
    val accept = HeaderNames.ACCEPT
    Definition Classes
    api
  • object HttpEntity
    Definition Classes
    http
  • Chunked
  • Streamed
  • Strict

final case class Strict(data: ByteString, contentType: Option[String]) extends HttpEntity with Product with Serializable

A strict entity.

Strict entities are contained entirely in memory.

data

The data contained within this entity.

contentType

The content type, if known.

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

Instance Constructors

  1. new Strict(data: ByteString, contentType: Option[String])

    data

    The data contained within this entity.

    contentType

    The content type, if known.

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. def as(contentType: String): Strict

    Return this entity as the given content type.

    Return this entity as the given content type.

    Definition Classes
    StrictHttpEntity
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def asJava: http.HttpEntity.Strict

    Convert this entity to its Java counterpart.

    Convert this entity to its Java counterpart.

    Definition Classes
    StrictHttpEntity
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def consumeData(implicit mat: Materializer): Future[ByteString]

    Consume the data from this entity.

    Consume the data from this entity.

    Definition Classes
    StrictHttpEntity
  9. def contentLength: Some[Long]

    The content length of the entity, if known.

    The content length of the entity, if known.

    Definition Classes
    StrictHttpEntity
  10. val contentType: Option[String]

    The content type of the entity, if known.

    The content type of the entity, if known.

    Definition Classes
    StrictHttpEntity
  11. val data: ByteString
  12. def dataStream: Source[ByteString, NotUsed]

    The entity as a data stream.

    The entity as a data stream.

    Definition Classes
    StrictHttpEntity
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def isKnownEmpty: Boolean

    Whether it is known if this entity is empty or not.

    Whether it is known if this entity is empty or not.

    If this returns true, then the entity is definitely empty. If it returns false, the entity may or may not be empty.

    Definition Classes
    StrictHttpEntity
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def productElementNames: Iterator[String]
    Definition Classes
    Product
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. 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 HttpEntity

Inherited from AnyRef

Inherited from Any

Ungrouped