Package org.apache.catalina.fileupload
Class Multipart
- java.lang.Object
-
- org.apache.catalina.fileupload.Multipart
-
public class Multipart extends Object
This class is the base for implementing servlet 3.0 file upload- Author:
- Kin-man Chung
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFileSizeThreshold()
String
getLocation()
long
getMaxFileSize()
long
getMaxRequestSize()
jakarta.servlet.http.Part
getPart(String name)
Collection<jakarta.servlet.http.Part>
getParts()
ProgressListener
getProgressListener()
Returns the progress listener.File
getRepository()
void
init()
void
setProgressListener(ProgressListener pListener)
Sets the progress listener.
-
-
-
Method Detail
-
init
public void init()
-
getLocation
public String getLocation()
-
getFileSizeThreshold
public int getFileSizeThreshold()
-
getMaxFileSize
public long getMaxFileSize()
-
getMaxRequestSize
public long getMaxRequestSize()
-
getRepository
public File getRepository()
-
getParts
public Collection<jakarta.servlet.http.Part> getParts() throws IOException, jakarta.servlet.ServletException
- Throws:
IOException
jakarta.servlet.ServletException
-
getPart
public jakarta.servlet.http.Part getPart(String name) throws IOException, jakarta.servlet.ServletException
- Throws:
IOException
jakarta.servlet.ServletException
-
getProgressListener
public ProgressListener getProgressListener()
Returns the progress listener.- Returns:
- The progress listener, if any, or null.
-
setProgressListener
public void setProgressListener(ProgressListener pListener)
Sets the progress listener.- Parameters:
pListener
- The progress listener, if any. Defaults to null.
-
-