|
||||||||
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 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 String |
getNewResourceName(CmsObject cms,
String fileName,
String folder)
Returns the VFS path for the given filename and folder. |
void |
setUploadDelay(int uploadDelay)
Sets the uploadDelay. |
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 String SESSION_ATTRIBUTE_LISTENER_ID
Constructor Detail |
---|
public CmsUploadBean(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
context
- the JSP page context objectreq
- the JSP requestres
- the JSP responseMethod Detail |
---|
public static CmsUploadListener getCurrentListener(CmsUUID listenerId)
listenerId
- the uuid
public static String getNewResourceName(CmsObject cms, String fileName, 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 String start()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |