|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.click.service.CommonsFileUploadService
public class CommonsFileUploadService
Provides a Apache Commons FileUploadService class.
| Field Summary | |
|---|---|
protected long |
fileSizeMax
The maximum individual size in bytes. |
protected long |
sizeMax
The total request maximum size in bytes. |
| Fields inherited from interface net.sf.click.service.FileUploadService |
|---|
UPLOAD_EXCEPTION |
| Constructor Summary | |
|---|---|
CommonsFileUploadService()
|
|
| Method Summary | |
|---|---|
FileItemFactory |
createFileItemFactory(HttpServletRequest request)
Create and return a new Commons Upload FileItemFactory instance. |
long |
getFileSizeMax()
Return maximum individual size in bytes. |
long |
getSizeMax()
Return the total request maximum size in bytes. |
void |
onDestroy()
Destroy the FileUploadService. |
void |
onInit(ServletContext servletContext)
Initialize the FileUploadService with the given application servlet context. |
List |
parseRequest(HttpServletRequest request)
Return a parsed list of FileItem from the request. |
void |
setFileSizeMax(long value)
Set the maximum individual size in bytes. |
void |
setSizeMax(long value)
Set the total request maximum size in bytes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long sizeMax
protected long fileSizeMax
| Constructor Detail |
|---|
public CommonsFileUploadService()
| Method Detail |
|---|
public void onInit(ServletContext servletContext)
throws Exception
FileUploadServiceConfigService by invoking
ClickUtils.getConfigService(javax.servlet.ServletContext)
onInit in interface FileUploadServiceservletContext - the application servlet context
Exception - if an error occurs initializing the FileUploadServiceFileUploadService.onInit(ServletContext)public void onDestroy()
FileUploadService
onDestroy in interface FileUploadServiceFileUploadService.onDestroy()
public List parseRequest(HttpServletRequest request)
throws FileUploadException
FileUploadService
parseRequest in interface FileUploadServicerequest - the servlet request
FileUploadException - if request cannot be parsedFileUploadService.parseRequest(HttpServletRequest)public long getFileSizeMax()
public void setFileSizeMax(long value)
value - the fileSizeMax to setpublic long getSizeMax()
public void setSizeMax(long value)
value - the setSizeMax to setpublic FileItemFactory createFileItemFactory(HttpServletRequest request)
request - the servlet request
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||