public class CmsUploadBean extends CmsJspBean
Modifier and Type | Field and Description |
---|---|
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.
|
Constructor and Description |
---|
CmsUploadBean(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Constructor, with parameters.
|
Modifier and Type | Method and Description |
---|---|
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, handleMissingFlexController, init, isNotInitialized, isSupressingExceptions, setContentType, setStatus, setSupressingExceptions
public 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()