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.Strict
Multipart.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, wait
getMediaType, toEntity, toEntity, toEntity
public MediaType.Multipart mediaType()
Multipart
public abstract org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart,java.lang.Object> parts()
Multipart
public scala.concurrent.Future<org.apache.pekko.http.scaladsl.model.Multipart.FormData.Strict> toStrict(scala.concurrent.duration.FiniteDuration timeout, org.apache.pekko.stream.Materializer fm)
Multipart
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)public org.apache.pekko.stream.javadsl.Source<? extends Multipart.FormData.BodyPart,java.lang.Object> getParts()
getParts
in interface Multipart
getParts
in interface Multipart.FormData
public java.util.concurrent.CompletionStage<Multipart.FormData.Strict> toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer)
toStrict
in interface Multipart
toStrict
in interface Multipart.FormData