Package akka.http.scaladsl.model
Class Multipart.FormData$
- java.lang.Object
-
- akka.http.scaladsl.model.Multipart.FormData$
-
- Enclosing interface:
- Multipart
public static class Multipart.FormData$ extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Multipart.FormData$.BodyPart
Body part of theMultipart.FormData
model.static class
Multipart.FormData$.BodyPart$
static class
Multipart.FormData$.Strict
StrictFormData
.static class
Multipart.FormData$.Strict$
-
Field Summary
Fields Modifier and Type Field Description static Multipart.FormData$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description FormData$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Multipart.FormData
apply(akka.stream.scaladsl.Source<akka.http.scaladsl.model.Multipart.FormData.BodyPart,java.lang.Object> _parts)
akka.http.scaladsl.model.Multipart.FormData.Strict
apply(scala.collection.immutable.Map<java.lang.String,HttpEntity.Strict> fields)
akka.http.scaladsl.model.Multipart.FormData.Strict
apply(scala.collection.immutable.Seq<akka.http.scaladsl.model.Multipart.FormData.BodyPart.Strict> parts)
Multipart.FormData
apply(scala.collection.immutable.Seq<akka.http.scaladsl.model.Multipart.FormData.BodyPart> parts)
Multipart.FormData
createNonStrict(scala.collection.immutable.Seq<akka.http.scaladsl.model.Multipart.FormData.BodyPart> parts)
INTERNAL APIMultipart.FormData
createSource(akka.stream.scaladsl.Source<Multipart.FormData.BodyPart,?> parts)
INTERNAL APIakka.http.scaladsl.model.Multipart.FormData.Strict
createStrict(scala.collection.immutable.Map<java.lang.String,HttpEntity.Strict> fields)
INTERNAL APIakka.http.scaladsl.model.Multipart.FormData.Strict
createStrict(scala.collection.immutable.Seq<akka.http.scaladsl.model.Multipart.FormData.BodyPart.Strict> parts)
INTERNAL APIMultipart.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.
-
-
-
Field Detail
-
MODULE$
public static final Multipart.FormData$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
apply
public akka.http.scaladsl.model.Multipart.FormData.Strict apply(scala.collection.immutable.Seq<akka.http.scaladsl.model.Multipart.FormData.BodyPart.Strict> parts)
-
apply
public Multipart.FormData apply(scala.collection.immutable.Seq<akka.http.scaladsl.model.Multipart.FormData.BodyPart> parts)
-
createStrict
public akka.http.scaladsl.model.Multipart.FormData.Strict createStrict(scala.collection.immutable.Seq<akka.http.scaladsl.model.Multipart.FormData.BodyPart.Strict> parts)
INTERNAL API
-
createNonStrict
public Multipart.FormData createNonStrict(scala.collection.immutable.Seq<akka.http.scaladsl.model.Multipart.FormData.BodyPart> parts)
INTERNAL API
-
createStrict
public akka.http.scaladsl.model.Multipart.FormData.Strict createStrict(scala.collection.immutable.Map<java.lang.String,HttpEntity.Strict> fields)
INTERNAL API
-
createSource
public Multipart.FormData createSource(akka.stream.scaladsl.Source<Multipart.FormData.BodyPart,?> parts)
INTERNAL API
-
apply
public akka.http.scaladsl.model.Multipart.FormData.Strict apply(scala.collection.immutable.Map<java.lang.String,HttpEntity.Strict> fields)
-
apply
public Multipart.FormData apply(akka.stream.scaladsl.Source<akka.http.scaladsl.model.Multipart.FormData.BodyPart,java.lang.Object> _parts)
-
fromFile
public 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.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)
-
fromPath
public 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.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)
-
-