|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UploadSPI
Service provider interface (SPI) which allows pluggable selection of the
library to be used to parse file uploads from HttpServletRequest.
Custom UploadSPI implementations may be configured by
calling UploadProviderFactory.setUploadProvider(UploadSPI) from
within an application entry point.
| Field Summary | |
|---|---|
static short |
NO_SIZE_LIMIT
Constant indicating that there is no size limit. |
| Method Summary | |
|---|---|
File |
getDiskCacheLocation()
Gets the directory to be used for storing file uploads that exceed the memory cache threshold. |
long |
getFileUploadSizeLimit()
Gets the maximum size, in bytes, of file uploads to be accepted. |
int |
getMemoryCacheThreshold()
Gets the size, in bytes, that the file upload must exceed before being cached to disk rather than in-memory. |
void |
handleUpload(Connection conn,
FileUploadSelector uploadSelect,
String uploadIndex,
UploadProgress progress)
Handles the upload of a file. |
| Methods inherited from interface nextapp.echo.webcontainer.WebContainerServlet.MultipartRequestWrapper |
|---|
getWrappedRequest |
| Field Detail |
|---|
static final short NO_SIZE_LIMIT
| Method Detail |
|---|
File getDiskCacheLocation()
throws IOException
IOException - if an I/O error occurs during this
operationlong getFileUploadSizeLimit()
NO_SIZE_LIMIT.
NO_SIZE_LIMIT if there is no size limit.int getMemoryCacheThreshold()
void handleUpload(Connection conn,
FileUploadSelector uploadSelect,
String uploadIndex,
UploadProgress progress)
throws Exception
conn - provides access to the request and response objectsuploadSelect - provides access to additional settingsuploadIndex - the upload indexprogress - used to communicate progress
Exception - If errors are encountered.
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||