📄 uploadmonitor.java
字号:
/* Licence:
* Use this however/wherever you like, just don't blame me if it breaks anything.
*
* Credit:
* If you're nice, you'll leave this bit:
*
* Class by Pierre-Alexandre Losson -- http://www.telio.be/blog
* email : plosson@users.sourceforge.net
*/
package be.telio.mediastore.ui.upload;
import uk.ltd.getahead.dwr.WebContextFactory;
import javax.servlet.http.HttpServletRequest;
/**
* Created by IntelliJ IDEA.
*
* @author Original : plosson on 06-janv.-2006 12:19:08 - Last modified by $Author: vde $ on $Date: 2004/11/26 22:43:57 $
* @version 1.0 - Rev. $Revision: 1.2 $
*/
public class UploadMonitor
{
public UploadInfo getUploadInfo()
{
HttpServletRequest req = WebContextFactory.get().getHttpServletRequest();
if (req.getSession().getAttribute("uploadInfo") != null)
return (UploadInfo) req.getSession().getAttribute("uploadInfo");
else
return new UploadInfo();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -