Class

akka.http.scaladsl.model.HttpEntity

Strict

Related Doc: package HttpEntity

Permalink

final case class Strict(contentType: ContentType, data: ByteString) extends javadsl.model.HttpEntity.Strict with UniversalEntity with Product with Serializable

The model for the entity of a "regular" unchunked HTTP message with known, fixed data.

Source
HttpEntity.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Strict
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. UniversalEntity
  7. BodyPartEntity
  8. RequestEntity
  9. ResponseEntity
  10. HttpEntity
  11. Strict
  12. UniversalEntity
  13. BodyPartEntity
  14. RequestEntity
  15. ResponseEntity
  16. HttpEntity
  17. AnyRef
  18. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Strict(contentType: ContentType, data: ByteString)

    Permalink

Type Members

  1. type ChunkStreamPart = javadsl.model.HttpEntity.ChunkStreamPart

    Permalink
    Attributes
    protected
    Definition Classes
    HttpEntity
  2. type Chunked = javadsl.model.HttpEntity.Chunked

    Permalink
    Attributes
    protected
    Definition Classes
    HttpEntity
  3. type CloseDelimited = javadsl.model.HttpEntity.CloseDelimited

    Permalink
    Attributes
    protected
    Definition Classes
    HttpEntity
  4. type Default = javadsl.model.HttpEntity.Default

    Permalink
    Attributes
    protected
    Definition Classes
    HttpEntity
  5. type IndefiniteLength = javadsl.model.HttpEntity.IndefiniteLength

    Permalink
    Attributes
    protected
    Definition Classes
    HttpEntity
  6. type Strict = javadsl.model.HttpEntity.Strict

    Permalink
    Attributes
    protected
    Definition Classes
    HttpEntity

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Strict to any2stringadd[HttpEntity.Strict] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (HttpEntity.Strict, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Strict to ArrowAssoc[HttpEntity.Strict] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def contentLength: Long

    Permalink
    Definition Classes
    StrictUniversalEntity
  9. def contentLengthOption: Option[Long]

    Permalink

    Some(content length) if a length is defined for this entity, None otherwise.

    Some(content length) if a length is defined for this entity, None otherwise. A length is only defined for Strict and Default entity types.

    In many cases it's dangerous to rely on the (non-)existence of a content-length. HTTP intermediaries like (transparent) proxies are allowed to change the transfer-encoding which can result in the entity being delivered as another type as expected.

    Definition Classes
    UniversalEntityHttpEntity
  10. val contentType: ContentType

    Permalink

    The ContentType associated with this entity.

    The ContentType associated with this entity.

    Definition Classes
    StrictHttpEntity
  11. val data: ByteString

    Permalink
  12. def dataBytes: Source[ByteString, NotUsed]

    Permalink

    A stream of the data of this entity.

    A stream of the data of this entity.

    Definition Classes
    StrictHttpEntity
  13. def ensuring(cond: (HttpEntity.Strict) ⇒ Boolean, msg: ⇒ Any): HttpEntity.Strict

    Permalink
    Implicit information
    This member is added by an implicit conversion from Strict to Ensuring[HttpEntity.Strict] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (HttpEntity.Strict) ⇒ Boolean): HttpEntity.Strict

    Permalink
    Implicit information
    This member is added by an implicit conversion from Strict to Ensuring[HttpEntity.Strict] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): HttpEntity.Strict

    Permalink
    Implicit information
    This member is added by an implicit conversion from Strict to Ensuring[HttpEntity.Strict] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): HttpEntity.Strict

    Permalink
    Implicit information
    This member is added by an implicit conversion from Strict to Ensuring[HttpEntity.Strict] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Strict to StringFormat[HttpEntity.Strict] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def getContentLengthOption(): OptionalLong

    Permalink

    Java API

    Java API

    Definition Classes
    HttpEntityHttpEntity
  22. def getContentType(): javadsl.model.ContentType

    Permalink

    Java API

    Java API

    Definition Classes
    HttpEntityHttpEntity
  23. def getData(): ByteString

    Permalink

    Java API

    Java API

    Definition Classes
    Strict → Strict
  24. def getDataBytes(): Source[ByteString, AnyRef]

    Permalink

    Java API

    Java API

    Definition Classes
    HttpEntityHttpEntity
  25. def isChunked(): Boolean

    Permalink
    Definition Classes
    HttpEntityHttpEntity
  26. def isCloseDelimited(): Boolean

    Permalink
    Definition Classes
    HttpEntityHttpEntity
  27. def isDefault(): Boolean

    Permalink
    Definition Classes
    HttpEntityHttpEntity
  28. def isIndefiniteLength(): Boolean

    Permalink
    Definition Classes
    HttpEntityHttpEntity
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. def isKnownEmpty(): Boolean

    Permalink

    Determines whether this entity is known to be empty.

    Determines whether this entity is known to be empty.

    Definition Classes
    StrictHttpEntityHttpEntity
  31. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. def productPrefix: String

    Permalink
    Definition Classes
    Strict → Product
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toStrict(timeout: FiniteDuration)(implicit fm: Materializer): Future[HttpEntity.Strict]

    Permalink

    Collects all possible parts and returns a potentially future Strict entity for easier processing.

    Collects all possible parts and returns a potentially future Strict entity for easier processing. The Future is failed with an TimeoutException if the stream isn't completed after the given timeout.

    Definition Classes
    StrictHttpEntity
  37. def toStrict(timeoutMillis: Long, materializer: Materializer): CompletionStage[javadsl.model.HttpEntity.Strict]

    Permalink

    Java API

    Java API

    Definition Classes
    HttpEntityHttpEntity
  38. def toString(): String

    Permalink
    Definition Classes
    Strict → AnyRef → Any
  39. def transformDataBytes(newContentLength: Long, transformer: Flow[ByteString, ByteString, Any]): UniversalEntity

    Permalink

    Transforms this' entities data bytes with a transformer that will produce exactly the number of bytes given as newContentLength.

    Transforms this' entities data bytes with a transformer that will produce exactly the number of bytes given as newContentLength.

    Definition Classes
    StrictUniversalEntity
  40. def transformDataBytes(transformer: Flow[ByteString, ByteString, Any]): MessageEntity

    Permalink

    Returns a copy of the given entity with the ByteString chunks of this entity transformed by the given transformer.

    Returns a copy of the given entity with the ByteString chunks of this entity transformed by the given transformer. For a Chunked entity, the chunks will be transformed one by one keeping the chunk metadata (but may introduce an extra chunk before the LastChunk if transformer.onTermination returns additional data).

    This method may only throw an exception if the transformer function throws an exception while creating the transformer. Any other errors are reported through the new entity data stream.

    Definition Classes
    StrictRequestEntityResponseEntityHttpEntity
  41. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. def withContentType(contentType: ContentType): HttpEntity.Strict

    Permalink

    Creates a copy of this HttpEntity with the contentType overridden with the given one.

    Creates a copy of this HttpEntity with the contentType overridden with the given one.

    Definition Classes
    StrictUniversalEntityBodyPartEntityRequestEntityResponseEntityHttpEntity
  45. def withSizeLimit(maxBytes: Long): UniversalEntity

    Permalink

    See HttpEntity#withSizeLimit.

  46. def withoutSizeLimit(): UniversalEntity

    Permalink
    Definition Classes
    StrictBodyPartEntityHttpEntity
  47. def [B](y: B): (HttpEntity.Strict, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Strict to ArrowAssoc[HttpEntity.Strict] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from UniversalEntity

Inherited from BodyPartEntity

Inherited from RequestEntity

Inherited from ResponseEntity

Inherited from HttpEntity

Inherited from javadsl.model.HttpEntity.Strict

Inherited from javadsl.model.HttpEntity

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Strict to any2stringadd[HttpEntity.Strict]

Inherited by implicit conversion StringFormat from Strict to StringFormat[HttpEntity.Strict]

Inherited by implicit conversion Ensuring from Strict to Ensuring[HttpEntity.Strict]

Inherited by implicit conversion ArrowAssoc from Strict to ArrowAssoc[HttpEntity.Strict]

Ungrouped