Interface MultipartFile
public interface MultipartFile
A file uploaded from a
Multipart
request.-
Method Summary
Modifier and TypeMethodDescriptiondefault File
file()
Returns the file that stores theBodyPart.content()
.filename()
Returns thefilename
parameter of the"content-disposition"
header.headers()
Returns the headers of thisMultipartFile
.name()
Returns thename
parameter of the"content-disposition"
header.static MultipartFile
Creates a newMultipartFile
.static MultipartFile
of
(String name, String filename, File file, HttpHeaders headers) Creates a newMultipartFile
.static MultipartFile
Creates a newMultipartFile
.static MultipartFile
of
(String name, String filename, Path path, HttpHeaders headers) Creates a newMultipartFile
.path()
Returns the path that stores theBodyPart.content()
.
-
Method Details
-
of
Creates a newMultipartFile
.- Parameters:
name
- the name parameter of the"content-disposition"
filename
- the filename parameter of the"content-disposition"
header.file
- the file that stores theBodyPart.content()
.
-
of
Creates a newMultipartFile
.- Parameters:
name
- the name parameter of the"content-disposition"
filename
- the filename parameter of the"content-disposition"
header.path
- the path that stores theBodyPart.content()
.
-
of
Creates a newMultipartFile
.- Parameters:
name
- the name parameter of the"content-disposition"
filename
- the filename parameter of the"content-disposition"
header.file
- the file that stores theBodyPart.content()
.headers
- HTTP part headers.
-
of
Creates a newMultipartFile
.- Parameters:
name
- the name parameter of the"content-disposition"
filename
- the filename parameter of the"content-disposition"
header.path
- the path that stores theBodyPart.content()
.headers
- HTTP part headers.
-
name
String name()Returns thename
parameter of the"content-disposition"
header.- See Also:
-
filename
String filename()Returns thefilename
parameter of the"content-disposition"
header.- See Also:
-
headers
HttpHeaders headers()Returns the headers of thisMultipartFile
. -
file
Returns the file that stores theBodyPart.content()
. -
path
Path path()Returns the path that stores theBodyPart.content()
.
-