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 intgetFileSizeThreshold()StringgetLocation()longgetMaxFileSize()longgetMaxRequestSize()jakarta.servlet.http.PartgetPart(String name)Collection<jakarta.servlet.http.Part>getParts()ProgressListenergetProgressListener()Returns the progress listener.FilegetRepository()voidinit()voidsetProgressListener(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:
IOExceptionjakarta.servlet.ServletException
-
getPart
public jakarta.servlet.http.Part getPart(String name) throws IOException, jakarta.servlet.ServletException
- Throws:
IOExceptionjakarta.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.
-
-