public abstract static class Multipart.FormData extends java.lang.Object implements Multipart, Multipart.FormData
multipart/form-data content as defined in http://tools.ietf.org/html/rfc2388.
All parts must have distinct names. (This is not verified!)Multipart.BodyPart, Multipart.BodyPart$, Multipart.ByteRanges, Multipart.ByteRanges$, Multipart.FormData, Multipart.FormData$, Multipart.General, Multipart.General$, Multipart.StrictMultipart.FormData.BodyPart, Multipart.FormData.Strict| Constructor and Description |
|---|
FormData() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.pekko.stream.javadsl.Source<? extends Multipart.FormData.BodyPart,java.lang.Object> |
getParts()
Java API
|
MediaType.Multipart |
mediaType()
The media-type this multipart content carries.
|
abstract org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart,java.lang.Object> |
parts()
The stream of body parts this content consists of.
|
scala.concurrent.Future<org.apache.pekko.http.scaladsl.model.Multipart.FormData.Strict> |
toStrict(scala.concurrent.duration.FiniteDuration timeout,
org.apache.pekko.stream.Materializer fm)
Converts this content into its strict counterpart.
|
java.util.concurrent.CompletionStage<Multipart.FormData.Strict> |
toStrict(long timeoutMillis,
org.apache.pekko.stream.Materializer materializer)
Java API
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMediaType, toEntity, toEntity, toEntitypublic MediaType.Multipart mediaType()
Multipartpublic abstract org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart,java.lang.Object> parts()
Multipartpublic scala.concurrent.Future<org.apache.pekko.http.scaladsl.model.Multipart.FormData.Strict> toStrict(scala.concurrent.duration.FiniteDuration timeout,
org.apache.pekko.stream.Materializer fm)
Multiparttimeout 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)public org.apache.pekko.stream.javadsl.Source<? extends Multipart.FormData.BodyPart,java.lang.Object> getParts()
getParts in interface MultipartgetParts in interface Multipart.FormDatapublic java.util.concurrent.CompletionStage<Multipart.FormData.Strict> toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer)
toStrict in interface MultiparttoStrict in interface Multipart.FormData