public class CmsUploadBean extends CmsJspBean
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_UPLOAD_TIMEOUT
The default upload timeout.
|
static java.lang.String |
SESSION_ATTRIBUTE_LISTENER_ID
Key name for the session attribute that stores the id of the current listener.
|
| 构造器和说明 |
|---|
CmsUploadBean(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Constructor, with parameters.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static CmsUploadListener |
getCurrentListener(CmsUUID listenerId)
Returns the listener for given CmsUUID.
|
static java.lang.String |
getNewResourceName(CmsObject cms,
java.lang.String fileName,
java.lang.String folder)
Returns the VFS path for the given filename and folder.
|
void |
setUploadDelay(int uploadDelay)
Sets the uploadDelay.
|
java.lang.String |
start()
Starts the upload.
|
getCmsObject, getController, getJspContext, getMessage, getRequest, getRequestContext, getResponse, handleException, init, isNotInitialized, isSupressingExceptions, setContentType, setStatus, setSupressingExceptionspublic static final int DEFAULT_UPLOAD_TIMEOUT
public static final java.lang.String SESSION_ATTRIBUTE_LISTENER_ID
public CmsUploadBean(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws CmsException
context - the JSP page context objectreq - the JSP requestres - the JSP responseCmsException - if something goes wrongpublic static CmsUploadListener getCurrentListener(CmsUUID listenerId)
listenerId - the uuidpublic static java.lang.String getNewResourceName(CmsObject cms, java.lang.String fileName, java.lang.String folder)
cms - the cms objectfileName - the filename to combine with the folderfolder - the folder to combine with the filenamepublic void setUploadDelay(int uploadDelay)
uploadDelay - the uploadDelay to setpublic java.lang.String start()