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 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 -
Method Summary
Modifier and TypeMethodDescriptionakka.stream.javadsl.Source<? extends Multipart.General.BodyPart,
Object> getParts()
Java APIabstract akka.stream.scaladsl.Source<akka.http.scaladsl.model.Multipart.General.BodyPart,
Object> parts()
The stream of body parts this content consists of.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.
-
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. -
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
Java API -
toStrict
public CompletionStage<Multipart.General.Strict> toStrict(long timeoutMillis, akka.stream.Materializer materializer) Java API
-