public static class Multipart.FormData$
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Multipart.FormData$.BodyPart
Body part of the
FormData model. |
static class |
Multipart.FormData$.BodyPart$ |
static class |
Multipart.FormData$.Strict
Strict
FormData . |
static class |
Multipart.FormData$.Strict$ |
Modifier and Type | Field and Description |
---|---|
static Multipart.FormData$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
FormData$() |
Modifier and Type | Method and Description |
---|---|
org.apache.pekko.http.scaladsl.model.Multipart.FormData.Strict |
apply(scala.collection.immutable.Map<java.lang.String,HttpEntity.Strict> fields) |
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) |
Multipart.FormData |
apply(scala.collection.immutable.Seq<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart> parts) |
Multipart.FormData |
apply(org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart,java.lang.Object> _parts) |
Multipart.FormData |
createNonStrict(scala.collection.immutable.Seq<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart> parts)
INTERNAL API
|
Multipart.FormData |
createSource(org.apache.pekko.stream.scaladsl.Source<Multipart.FormData.BodyPart,?> parts)
INTERNAL API
|
org.apache.pekko.http.scaladsl.model.Multipart.FormData.Strict |
createStrict(scala.collection.immutable.Map<java.lang.String,HttpEntity.Strict> fields)
INTERNAL API
|
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
|
Multipart.FormData |
fromFile(java.lang.String name,
ContentType contentType,
java.io.File file,
int chunkSize)
Creates a FormData instance that contains a single part backed by the given file.
|
Multipart.FormData |
fromPath(java.lang.String name,
ContentType contentType,
java.nio.file.Path file,
int chunkSize)
Creates a FormData instance that contains a single part backed by the given file.
|
public static final Multipart.FormData$ MODULE$
public 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)
public Multipart.FormData apply(scala.collection.immutable.Seq<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart> parts)
public 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)
public Multipart.FormData createNonStrict(scala.collection.immutable.Seq<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart> parts)
public org.apache.pekko.http.scaladsl.model.Multipart.FormData.Strict createStrict(scala.collection.immutable.Map<java.lang.String,HttpEntity.Strict> fields)
public Multipart.FormData createSource(org.apache.pekko.stream.scaladsl.Source<Multipart.FormData.BodyPart,?> parts)
public org.apache.pekko.http.scaladsl.model.Multipart.FormData.Strict apply(scala.collection.immutable.Map<java.lang.String,HttpEntity.Strict> fields)
public Multipart.FormData apply(org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart,java.lang.Object> _parts)
public Multipart.FormData fromFile(java.lang.String name, ContentType contentType, java.io.File file, int chunkSize)
To create an instance with several parts or for multiple files, use
FormData(BodyPart.fromFile("field1", ...), BodyPart.fromFile("field2", ...)
name
- (undocumented)contentType
- (undocumented)file
- (undocumented)chunkSize
- (undocumented)public Multipart.FormData fromPath(java.lang.String name, ContentType contentType, java.nio.file.Path file, int chunkSize)
To create an instance with several parts or for multiple files, use
FormData(BodyPart.fromPath("field1", ...), BodyPart.fromPath("field2", ...)
name
- (undocumented)contentType
- (undocumented)file
- (undocumented)chunkSize
- (undocumented)