Class Multipart.General

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

public abstract static class Multipart.General extends Object implements Multipart, Multipart.General
Basic model for general multipart content as defined by http://tools.ietf.org/html/rfc2046.
  • Constructor Details

    • General

      public General()
  • Method Details

    • parts

      public abstract akka.stream.scaladsl.Source<akka.http.scaladsl.model.Multipart.General.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.General.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.General.BodyPart,Object> getParts()
      Java API
      Specified by:
      getParts in interface Multipart
      Specified by:
      getParts in interface Multipart
      Specified by:
      getParts in interface Multipart.General
    • toStrict

      public CompletionStage<Multipart.General.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.General