Class Multipart.FormData$
java.lang.Object
org.apache.pekko.http.scaladsl.model.Multipart.FormData$
- Enclosing interface:
- Multipart
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBody part of theMultipart.FormDatamodel.static classstatic classStrictFormData.static class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Multipart.FormData$Static reference to the singleton instance of this Scala object.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionapply(org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart, Object> _parts) org.apache.pekko.http.scaladsl.model.Multipart.FormData.Strictapply(scala.collection.immutable.Map<String, HttpEntity.Strict> fields) org.apache.pekko.http.scaladsl.model.Multipart.FormData.Strictapply(scala.collection.immutable.Seq<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart.Strict> parts) apply(scala.collection.immutable.Seq<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart> parts) createNonStrict(scala.collection.immutable.Seq<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart> parts) INTERNAL APIcreateSource(org.apache.pekko.stream.scaladsl.Source<Multipart.FormData.BodyPart, ?> parts) INTERNAL APIorg.apache.pekko.http.scaladsl.model.Multipart.FormData.StrictcreateStrict(scala.collection.immutable.Map<String, HttpEntity.Strict> fields) INTERNAL APIorg.apache.pekko.http.scaladsl.model.Multipart.FormData.StrictcreateStrict(scala.collection.immutable.Seq<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart.Strict> parts) INTERNAL APIfromFile(String name, ContentType contentType, File file, int chunkSize) Creates a FormData instance that contains a single part backed by the given file.fromPath(String name, ContentType contentType, Path file, int chunkSize) Creates a FormData instance that contains a single part backed by the given file.
- 
Field Details- 
MODULE$Static reference to the singleton instance of this Scala object.
 
- 
- 
Constructor Details- 
FormData$public FormData$()
 
- 
- 
Method Details- 
applypublic org.apache.pekko.http.scaladsl.model.Multipart.FormData.Strict apply(scala.collection.immutable.Seq<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart.Strict> parts) 
- 
applypublic Multipart.FormData apply(scala.collection.immutable.Seq<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart> parts) 
- 
createStrictpublic org.apache.pekko.http.scaladsl.model.Multipart.FormData.Strict createStrict(scala.collection.immutable.Seq<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart.Strict> parts) INTERNAL API
- 
createNonStrictpublic Multipart.FormData createNonStrict(scala.collection.immutable.Seq<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart> parts) INTERNAL API
- 
createStrictpublic org.apache.pekko.http.scaladsl.model.Multipart.FormData.Strict createStrict(scala.collection.immutable.Map<String, HttpEntity.Strict> fields) INTERNAL API
- 
createSourcepublic Multipart.FormData createSource(org.apache.pekko.stream.scaladsl.Source<Multipart.FormData.BodyPart, ?> parts) INTERNAL API
- 
applypublic org.apache.pekko.http.scaladsl.model.Multipart.FormData.Strict apply(scala.collection.immutable.Map<String, HttpEntity.Strict> fields) 
- 
applypublic Multipart.FormData apply(org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart, Object> _parts) 
- 
fromFileCreates a FormData instance that contains a single part backed by the given file.To create an instance with several parts or for multiple files, use FormData(BodyPart.fromFile("field1", ...), BodyPart.fromFile("field2", ...)- Parameters:
- name- (undocumented)
- contentType- (undocumented)
- file- (undocumented)
- chunkSize- (undocumented)
- Returns:
- (undocumented)
 
- 
fromPathCreates a FormData instance that contains a single part backed by the given file.To create an instance with several parts or for multiple files, use FormData(BodyPart.fromPath("field1", ...), BodyPart.fromPath("field2", ...)- Parameters:
- name- (undocumented)
- contentType- (undocumented)
- file- (undocumented)
- chunkSize- (undocumented)
- Returns:
- (undocumented)
 
 
-