Class Multipart.FormData$

  • Enclosing interface:
    Multipart

    public static class Multipart.FormData$
    extends java.lang.Object
    • Field Detail

      • MODULE$

        public static final Multipart.FormData$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • FormData$

        public FormData$()
    • 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
      • 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)