Java Spring Boot Multipart Request

Web batch/bulk/multipart requests with Java Spring Boot framework.

License

License

Categories

Categories

Net
GroupId

GroupId

net.seesharpsoft.spring
ArtifactId

ArtifactId

sharping-multipart-boot
Last Version

Last Version

0.8.0
Release Date

Release Date

Type

Type

jar
Description

Description

Java Spring Boot Multipart Request
Web batch/bulk/multipart requests with Java Spring Boot framework.

Download sharping-multipart-boot

How to add to project

<!-- https://jarcasting.com/artifacts/net.seesharpsoft.spring/sharping-multipart-boot/ -->
<dependency>
    <groupId>net.seesharpsoft.spring</groupId>
    <artifactId>sharping-multipart-boot</artifactId>
    <version>0.8.0</version>
</dependency>
// https://jarcasting.com/artifacts/net.seesharpsoft.spring/sharping-multipart-boot/
implementation 'net.seesharpsoft.spring:sharping-multipart-boot:0.8.0'
// https://jarcasting.com/artifacts/net.seesharpsoft.spring/sharping-multipart-boot/
implementation ("net.seesharpsoft.spring:sharping-multipart-boot:0.8.0")
'net.seesharpsoft.spring:sharping-multipart-boot:jar:0.8.0'
<dependency org="net.seesharpsoft.spring" name="sharping-multipart-boot" rev="0.8.0">
  <artifact name="sharping-multipart-boot" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.seesharpsoft.spring', module='sharping-multipart-boot', version='0.8.0')
)
libraryDependencies += "net.seesharpsoft.spring" % "sharping-multipart-boot" % "0.8.0"
[net.seesharpsoft.spring/sharping-multipart-boot "0.8.0"]

Dependencies

compile (1)

Group / Artifact Type Version
net.seesharpsoft.spring : sharping-multipart jar 0.8.0

provided (2)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-web jar
org.springframework.boot : spring-boot-configuration-processor Optional jar

Project Modules

There are no modules declared in this project.

Spring - Multipart / Batch messages

Enable multipart / batch request for JAVA Spring.

Links

Implementation is syntactically inspired by

http://www.rfc-editor.org/rfc/rfc2046.txt

https://tools.ietf.org/id/draft-snell-http-batch-00.html

http://www.odata.org/documentation/odata-version-3-0/batch-processing/

Example

  • startup multipart-example spring-boot:run
  • POST localhost:8080/my/own/multipart/endpoint

Header

Content-Type: multipart/mixed

Body

--batch
Content-Type: application/http
Content-Transfer-Encoding: binary

GET /hello HTTP/1.1
Host: host

--batch
Content-Type: application/http
Content-Transfer-Encoding: binary

GET /greeting?name=Trevor HTTP/1.1
Host: host

--batch
Content-Type: application/http
Content-Transfer-Encoding: binary

GET /greeting?name=Peter&name=Lustig HTTP/1.1
--batch--

Response

--batch
Content-Type: application/http
Content-Transfer-Encoding: binary

HTTP/1.1 200 OK
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 27

Greetings from Spring Boot!
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 35

{"id":1,"content":"Hello, Trevor!"}
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 41

{"id":2,"content":"Hello, Peter,Lustig!"}
--batch--

Versions

Version
0.8.0
0.7.1
0.7.0
0.6.0