public interface Multipart extends Multipart
multipart/\*
(general multipart content),
multipart/form-data
and multipart/byteranges
.
The basic modelling classes for these media-types (Multipart.General
, Multipart.FormData
and
Multipart.ByteRanges
, respectively) are stream-based but each have a strict counterpart
(namely Multipart$General$Strict
, Multipart$FormData$Strict
and Multipart$ByteRanges$Strict
).
Modifier and Type | Interface and Description |
---|---|
static interface |
Multipart.BodyPart
The general model for a single part of a multipart message.
|
static class |
Multipart.BodyPart$ |
static class |
Multipart.ByteRanges
Model 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-A |
static class |
Multipart.ByteRanges$ |
static class |
Multipart.FormData
Model for
multipart/form-data content as defined in http://tools.ietf.org/html/rfc2388. |
static class |
Multipart.FormData$ |
static class |
Multipart.General
Basic model for general multipart content as defined by http://tools.ietf.org/html/rfc2046.
|
static class |
Multipart.General$ |
static interface |
Multipart.Strict
A type of multipart content for which all parts have already been loaded into memory
and are therefore allow random access.
|
Modifier and Type | Method and Description |
---|---|
MediaType.Multipart |
getMediaType()
Java API
|
org.apache.pekko.stream.javadsl.Source<? extends Multipart.BodyPart,java.lang.Object> |
getParts()
Java API
|
MediaType.Multipart |
mediaType()
The media-type this multipart content carries.
|
org.apache.pekko.stream.scaladsl.Source<Multipart.BodyPart,java.lang.Object> |
parts()
The stream of body parts this content consists of.
|
RequestEntity |
toEntity()
Creates an entity from this multipart object using a random boundary.
|
RequestEntity |
toEntity(java.lang.String boundary)
Creates an entity from this multipart object using the specified boundary.
|
RequestEntity |
toEntity(java.lang.String boundary,
org.apache.pekko.event.LoggingAdapter log)
Creates an entity from this multipart object using the specified boundary and logger.
|
scala.concurrent.Future<Multipart.Strict> |
toStrict(scala.concurrent.duration.FiniteDuration timeout,
org.apache.pekko.stream.Materializer fm)
Converts this content into its strict counterpart.
|
java.util.concurrent.CompletionStage<? extends Multipart.Strict> |
toStrict(long timeoutMillis,
org.apache.pekko.stream.Materializer materializer)
Java API
|
MediaType.Multipart mediaType()
org.apache.pekko.stream.scaladsl.Source<Multipart.BodyPart,java.lang.Object> parts()
scala.concurrent.Future<Multipart.Strict> toStrict(scala.concurrent.duration.FiniteDuration timeout, org.apache.pekko.stream.Materializer fm)
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.timeout
- (undocumented)fm
- (undocumented)RequestEntity toEntity(java.lang.String boundary, org.apache.pekko.event.LoggingAdapter log)
boundary
- (undocumented)log
- (undocumented)RequestEntity toEntity(java.lang.String boundary)
RequestEntity toEntity()
MediaType.Multipart getMediaType()
getMediaType
in interface Multipart
org.apache.pekko.stream.javadsl.Source<? extends Multipart.BodyPart,java.lang.Object> getParts()
java.util.concurrent.CompletionStage<? extends Multipart.Strict> toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer)