基于拦截器机制的编辑器上传附件的自动清理
DOI:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

中华女子学院2013年度立项项目(JS2013-02009)


Interceptor Mechanism Based the Automatic Cleaning of Files Uploaded By the Editor
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 增强出版
  • |
  • 文章评论
    摘要:

    在线文本编辑器在web项目中得到广泛应用,针对从网页文档中删除图片、音视频等对象时如何有效清除服务器上相应附件的问题,提出一种在Java EE平台下使用的基于过滤器或拦截器机制的通用方案,在每一次文档操作完成之后,由系统自动清除服务器上无用的磁盘文件; 以FCKeditor编辑器的应用为例,介绍了实现技术和软件实现方法。附件的清理对用户是透明的,且代码易于实现和重用,能够有效而安全地应用于各类涉及内容发布的web系统中。

    Abstract:

    The text editor for internet has been widely used in web projects. In view of the problem how to clean up the corresponding disk files in the server when deleted the objects of the image,audio and video from the content in the editor, a general-purpose sulotion application on Java EE platform was put forward. Based on filters or interceptor mechanism, it could automatically clean up the attachments loaded to the server but of no use whenever the eidt was over. Taking the FCKeditor application for example, the software implementation technology and method was introduced in detail. The cleaning was transparent to user. The sulution is safe and reusable, and also easy to implement. It can effectively apply in various types of web projects related to content publishing.

    参考文献
    相似文献
    引证文献
引用本文

陈洁.基于拦截器机制的编辑器上传附件的自动清理.计算机系统应用,2014,23(2):230-234

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2013-07-18
  • 最后修改日期:2013-08-19
  • 录用日期:
  • 在线发布日期: 2014-01-27
  • 出版日期:
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京海淀区中关村南四街4号 中科院软件园区 7号楼305房间,邮政编码:100190
电话:010-62661041 传真: Email:csa (a) iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号