-
- All Implemented Interfaces:
-
jakarta.servlet.http.Part
public class MultiPartFormInputStream.MultiPart implements Part
-
-
Constructor Summary
Constructors Constructor Description MultiPartFormInputStream.MultiPart(String name, String filename)
-
Method Summary
Modifier and Type Method Description StringtoString()voidwrite(String fileName)StringgetContentType()StringgetHeader(String name)Collection<String>getHeaderNames()Collection<String>getHeaders(String name)InputStreamgetInputStream()StringgetSubmittedFileName()StringgetName()longgetSize()voiddelete()Remove the file, whether or not Part.write() was called on it (i.e. voidcleanUp()Only remove tmp files. StringgetContentDispositionFilename()Get the filename from the content-disposition. -
-
Method Detail
-
getContentType
String getContentType()
-
getHeaderNames
Collection<String> getHeaderNames()
-
getHeaders
Collection<String> getHeaders(String name)
-
getInputStream
InputStream getInputStream()
-
getSubmittedFileName
String getSubmittedFileName()
-
getSize
long getSize()
-
delete
void delete()
Remove the file, whether or not Part.write() was called on it (i.e. it's no longer temporary)
-
cleanUp
void cleanUp()
Only remove tmp files.
-
getContentDispositionFilename
String getContentDispositionFilename()
Get the filename from the content-disposition.
-
-
-
-