|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.jsp.CmsJspBean
org.opencms.ade.upload.CmsUploadBean
public class CmsUploadBean
Bean to be used in JSP scriptlet code that provides access to the upload functionality.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
CmsUploadBean(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Constructor, with parameters. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.opencms.jsp.CmsJspBean |
|---|
getCmsObject, getController, getJspContext, getMessage, getRequest, getRequestContext, getResponse, handleException, init, isNotInitialized, isSupressingExceptions, setContentType, setStatus, setSupressingExceptions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_UPLOAD_TIMEOUT
public static final java.lang.String SESSION_ATTRIBUTE_LISTENER_ID
| Constructor Detail |
|---|
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 response
CmsException - if something goes wrong| Method Detail |
|---|
public static CmsUploadListener getCurrentListener(CmsUUID listenerId)
listenerId - the uuid
public 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 filename
public void setUploadDelay(int uploadDelay)
uploadDelay - the uploadDelay to setpublic java.lang.String start()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||