Class Multipart.FormData
java.lang.Object
org.apache.pekko.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 Object
implements Multipart, Multipart.FormData
Model for
multipart/form-data content as defined in https://www.rfc-editor.org/rfc/rfc7578.html.
Multiple files for one field use separate parts with the same name.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pekko.http.javadsl.model.Multipart
Multipart.ByteRanges, Multipart.FormData, Multipart.GeneralNested classes/interfaces inherited from interface org.apache.pekko.http.scaladsl.model.Multipart
Multipart.BodyPart, Multipart.BodyPart$, Multipart.ByteRanges, Multipart.ByteRanges$, Multipart.FormData, Multipart.FormData$, Multipart.General, Multipart.General$, Multipart.StrictNested classes/interfaces inherited from interface org.apache.pekko.http.javadsl.model.Multipart.FormData
Multipart.FormData.BodyPart, Multipart.FormData.FilenameEncoding, Multipart.FormData.Strict -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pekko.stream.javadsl.Source<? extends Multipart.FormData.BodyPart,Object> getParts()Java APIThe media-type this multipart content carries.abstract org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart,Object> parts()The stream of body parts this content consists of.toEntity(String boundary, Multipart.FormData.FilenameEncoding encoding) Renders form data with an explicit outgoing filename encoding.toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer) Java APIscala.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.http.scaladsl.model.Multipart
getMediaType, toEntity, toEntity, toEntity
-
Constructor Details
-
FormData
public FormData()
-
-
Method Details
-
toEntity
Renders form data with an explicit outgoing filename encoding. Existing overloads retain their current extended filename behavior. A nonlegacy encoding overrides filename* only when filename is present. Percent encoding requires support from the recipient; it does not change decoding.- Specified by:
toEntityin interfaceMultipart.FormData- Parameters:
boundary- (undocumented)encoding- (undocumented)- Returns:
- (undocumented)
-
mediaType
Description copied from interface:MultipartThe media-type this multipart content carries. -
parts
public abstract org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart,Object> parts()Description copied from interface:MultipartThe stream of body parts this content consists of. -
toStrict
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) Description copied from interface:MultipartConverts this content into its strict counterpart. The giventimeoutdenotes 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 org.apache.pekko.stream.javadsl.Source<? extends Multipart.FormData.BodyPart,Object> getParts()Java API -
toStrict
public CompletionStage<Multipart.FormData.Strict> toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer) Java API
-