Package akka.http.scaladsl.model
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 java.lang.Object implements Multipart, Multipart.General
Basic model for general multipart content as defined by http://tools.ietf.org/html/rfc2046.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface akka.http.javadsl.model.Multipart
Multipart.ByteRanges, Multipart.FormData, Multipart.General
-
Nested classes/interfaces inherited from interface akka.http.scaladsl.model.Multipart
Multipart.BodyPart, Multipart.BodyPart$, Multipart.ByteRanges, Multipart.ByteRanges$, Multipart.FormData, Multipart.FormData$, Multipart.General, Multipart.General$, Multipart.Strict
-
Nested classes/interfaces inherited from interface akka.http.javadsl.model.Multipart.General
Multipart.General.BodyPart, Multipart.General.Strict
-
-
Constructor Summary
Constructors Constructor Description General()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description akka.stream.javadsl.Source<? extends Multipart.General.BodyPart,java.lang.Object>
getParts()
Java APIabstract akka.stream.scaladsl.Source<akka.http.scaladsl.model.Multipart.General.BodyPart,java.lang.Object>
parts()
The stream of body parts this content consists of.java.util.concurrent.CompletionStage<Multipart.General.Strict>
toStrict(long timeoutMillis, akka.stream.Materializer materializer)
Java APIscala.concurrent.Future<akka.http.scaladsl.model.Multipart.General.Strict>
toStrict(scala.concurrent.duration.FiniteDuration timeout, akka.stream.Materializer fm)
Converts this content into its strict counterpart.
-
-
-
Method Detail
-
parts
public abstract akka.stream.scaladsl.Source<akka.http.scaladsl.model.Multipart.General.BodyPart,java.lang.Object> parts()
Description copied from interface:Multipart
The stream of body parts this content consists of.
-
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 giventimeout
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.
-
getParts
public akka.stream.javadsl.Source<? extends Multipart.General.BodyPart,java.lang.Object> getParts()
Java API
-
toStrict
public java.util.concurrent.CompletionStage<Multipart.General.Strict> toStrict(long timeoutMillis, akka.stream.Materializer materializer)
Java API
-
-