Class Multipart.ByteRanges

java.lang.Object
akka.http.scaladsl.model.Multipart.ByteRanges
All Implemented Interfaces:
Multipart, Multipart.ByteRanges, Multipart
Direct Known Subclasses:
Multipart.ByteRanges$.Strict
Enclosing interface:
Multipart

public abstract static class Multipart.ByteRanges extends Object implements Multipart, Multipart.ByteRanges
Model for multipart/byteranges content as defined by https://tools.ietf.org/html/rfc7233#section-5.4.1 and https://tools.ietf.org/html/rfc7233#appendix-A
  • Constructor Details

    • ByteRanges

      public ByteRanges()
  • Method Details

    • mediaType

      public MediaType.Multipart mediaType()
      Description copied from interface: Multipart
      The media-type this multipart content carries.
      Specified by:
      mediaType in interface Multipart
      Returns:
      (undocumented)
    • parts

      public abstract akka.stream.scaladsl.Source<akka.http.scaladsl.model.Multipart.ByteRanges.BodyPart,Object> parts()
      Description copied from interface: Multipart
      The stream of body parts this content consists of.
      Specified by:
      parts in interface Multipart
      Returns:
      (undocumented)
    • toStrict

      public scala.concurrent.Future<akka.http.scaladsl.model.Multipart.ByteRanges.Strict> toStrict(scala.concurrent.duration.FiniteDuration timeout, akka.stream.Materializer fm)
      Description copied from interface: Multipart
      Converts this content into its strict counterpart. The given timeout denotes the max time that an individual part must be read in. The Future is failed with an TimeoutException if one part isn't read completely after the given timeout.
      Specified by:
      toStrict in interface Multipart
      Parameters:
      timeout - (undocumented)
      fm - (undocumented)
      Returns:
      (undocumented)
    • getParts

      public akka.stream.javadsl.Source<? extends Multipart.ByteRanges.BodyPart,Object> getParts()
      Java API
      Specified by:
      getParts in interface Multipart
      Specified by:
      getParts in interface Multipart
      Specified by:
      getParts in interface Multipart.ByteRanges
    • toStrict

      public CompletionStage<Multipart.ByteRanges.Strict> toStrict(long timeoutMillis, akka.stream.Materializer materializer)
      Java API
      Specified by:
      toStrict in interface Multipart
      Specified by:
      toStrict in interface Multipart
      Specified by:
      toStrict in interface Multipart.ByteRanges