Package akka.http.scaladsl.model
Class Multipart.FormData
- java.lang.Object
-
- akka.http.scaladsl.model.Multipart.FormData
-
- All Implemented Interfaces:
Multipart
,Multipart.FormData
,Multipart
- Direct Known Subclasses:
Multipart.FormData$.Strict
- Enclosing interface:
- Multipart
public abstract static class Multipart.FormData extends java.lang.Object implements Multipart, Multipart.FormData
Model formultipart/form-data
content as defined in http://tools.ietf.org/html/rfc2388. All parts must have distinct names. (This is not verified!)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface akka.http.javadsl.model.Multipart
Multipart.ByteRanges, Multipart.FormData, Multipart.General
-
Nested classes/interfaces inherited from interface akka.http.scaladsl.model.Multipart
Multipart.BodyPart, Multipart.BodyPart$, Multipart.ByteRanges, Multipart.ByteRanges$, Multipart.FormData, Multipart.FormData$, Multipart.General, Multipart.General$, Multipart.Strict
-
Nested classes/interfaces inherited from interface akka.http.javadsl.model.Multipart.FormData
Multipart.FormData.BodyPart, Multipart.FormData.Strict
-
-
Constructor Summary
Constructors Constructor Description FormData()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description akka.stream.javadsl.Source<? extends Multipart.FormData.BodyPart,java.lang.Object>
getParts()
Java APIMediaType.Multipart
mediaType()
The media-type this multipart content carries.abstract akka.stream.scaladsl.Source<akka.http.scaladsl.model.Multipart.FormData.BodyPart,java.lang.Object>
parts()
The stream of body parts this content consists of.java.util.concurrent.CompletionStage<Multipart.FormData.Strict>
toStrict(long timeoutMillis, akka.stream.Materializer materializer)
Java APIscala.concurrent.Future<akka.http.scaladsl.model.Multipart.FormData.Strict>
toStrict(scala.concurrent.duration.FiniteDuration timeout, akka.stream.Materializer fm)
Converts this content into its strict counterpart.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.scaladsl.model.Multipart
getMediaType, toEntity, toEntity, toEntity
-
-
-
-
Method Detail
-
mediaType
public MediaType.Multipart mediaType()
Description copied from interface:Multipart
The media-type this multipart content carries.
-
parts
public abstract akka.stream.scaladsl.Source<akka.http.scaladsl.model.Multipart.FormData.BodyPart,java.lang.Object> parts()
Description copied from interface:Multipart
The stream of body parts this content consists of.
-
toStrict
public scala.concurrent.Future<akka.http.scaladsl.model.Multipart.FormData.Strict> toStrict(scala.concurrent.duration.FiniteDuration timeout, akka.stream.Materializer fm)
Description copied from interface:Multipart
Converts this content into its strict counterpart. The giventimeout
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.
-
getParts
public akka.stream.javadsl.Source<? extends Multipart.FormData.BodyPart,java.lang.Object> getParts()
Java API
-
toStrict
public java.util.concurrent.CompletionStage<Multipart.FormData.Strict> toStrict(long timeoutMillis, akka.stream.Materializer materializer)
Java API
-
-