Class Multipart.General
java.lang.Object
org.apache.pekko.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 SummaryNested classes/interfaces inherited from interface org.apache.pekko.http.javadsl.model.MultipartMultipart.ByteRanges, Multipart.FormData, Multipart.GeneralNested classes/interfaces inherited from interface org.apache.pekko.http.scaladsl.model.MultipartMultipart.BodyPart, Multipart.BodyPart$, Multipart.ByteRanges, Multipart.ByteRanges$, Multipart.FormData, Multipart.FormData$, Multipart.General, Multipart.General$, Multipart.StrictNested classes/interfaces inherited from interface org.apache.pekko.http.javadsl.model.Multipart.GeneralMultipart.General.BodyPart, Multipart.General.Strict
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.pekko.stream.javadsl.Source<? extends Multipart.General.BodyPart,Object> getParts()Java APIabstract org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.http.scaladsl.model.Multipart.General.BodyPart,Object> parts()The stream of body parts this content consists of.toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer) Java APIscala.concurrent.Future<org.apache.pekko.http.scaladsl.model.Multipart.General.Strict>toStrict(scala.concurrent.duration.FiniteDuration timeout, org.apache.pekko.stream.Materializer fm) Converts this content into its strict counterpart.
- 
Constructor Details- 
Generalpublic General()
 
- 
- 
Method Details- 
partspublic abstract org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.http.scaladsl.model.Multipart.General.BodyPart,Object> parts()Description copied from interface:MultipartThe stream of body parts this content consists of.
- 
toStrictpublic scala.concurrent.Future<org.apache.pekko.http.scaladsl.model.Multipart.General.Strict> toStrict(scala.concurrent.duration.FiniteDuration timeout, org.apache.pekko.stream.Materializer fm) Description copied from interface:MultipartConverts this content into its strict counterpart. The giventimeoutdenotes 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.
- 
getPartspublic org.apache.pekko.stream.javadsl.Source<? extends Multipart.General.BodyPart,Object> getParts()Java API
- 
toStrictpublic CompletionStage<Multipart.General.Strict> toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer) Java API
 
-