Package akka.http.javadsl.model
Interface Multipart
-
- All Known Subinterfaces:
Multipart,Multipart.ByteRanges,Multipart.ByteRanges.Strict,Multipart.FormData,Multipart.FormData.Strict,Multipart.General,Multipart.General.Strict,Multipart.Strict,Multipart.Strict
- All Known Implementing Classes:
Multipart.ByteRanges,Multipart.ByteRanges$.Strict,Multipart.FormData,Multipart.FormData$.Strict,Multipart.General,Multipart.General$.Strict
public interface MultipartThe model of multipart content for media-types `multipart/\*` (general multipart content), `multipart/form-data` and `multipart/byteranges`. The basic modelling classes for these media-types ([[akka.http.scaladsl.Multipart.General]], [[Multipart.FormData]] and [[akka.http.scaladsl.Multipart.ByteRanges]], respectively) are stream-based but each have a strict counterpart (namely [[akka.http.scaladsl.Multipart.General.Strict]], [[akka.http.scaladsl.Multipart.FormData.Strict]] and [[akka.http.scaladsl.Multipart.ByteRanges.Strict]]).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceMultipart.BodyPartstatic interfaceMultipart.ByteRangesModel 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-Astatic interfaceMultipart.FormDataModel for `multipart/form-data` content as defined in http://tools.ietf.org/html/rfc2388.static interfaceMultipart.GeneralBasic model for multipart content as defined by http://tools.ietf.org/html/rfc2046.static interfaceMultipart.Strict
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MediaType.MultipartgetMediaType()akka.stream.javadsl.Source<? extends Multipart.BodyPart,java.lang.Object>getParts()RequestEntitytoEntity()Creates an entity from this multipart object using a random boundary.RequestEntitytoEntity(java.lang.String boundary)Creates an entity from this multipart object using the specified boundary.java.util.concurrent.CompletionStage<? extends Multipart.Strict>toStrict(long timeoutMillis, akka.stream.Materializer materializer)Converts this content into its strict counterpart.
-
-
-
Method Detail
-
getMediaType
MediaType.Multipart getMediaType()
-
getParts
akka.stream.javadsl.Source<? extends Multipart.BodyPart,java.lang.Object> getParts()
-
toStrict
java.util.concurrent.CompletionStage<? extends Multipart.Strict> toStrict(long timeoutMillis, akka.stream.Materializer materializer)
Converts this content into its strict counterpart. The given `timeout` denotes the max time that an individual part must be read in. The CompletionStage is failed with an TimeoutException if one part isn't read completely after the given timeout.
-
toEntity
RequestEntity toEntity(java.lang.String boundary)
Creates an entity from this multipart object using the specified boundary.
-
toEntity
RequestEntity toEntity()
Creates an entity from this multipart object using a random boundary.
-
-