KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jdon > strutsutil > file > filter > ImageFilter


1 /**
2  * Copyright 2003-2006 the original author or authors.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6
7        http://www.apache.org/licenses/LICENSE-2.0
8
9   * Unless required by applicable law or agreed to in writing, software
10   * distributed under the License is distributed on an "AS IS" BASIS,
11   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12   * See the License for the specific language governing permissions and
13   * limitations under the License.
14   */

15
16 package com.jdon.strutsutil.file.filter;
17
18 import javax.servlet.http.*;
19 import com.jdon.strutsutil.file.UploadFile;
20 import java.util.*;
21
22 public interface ImageFilter {
23
24   /**
25    * 获得所有上传文件的ID集å?ˆ
26    * @param request
27    * @return
28    */

29   public Collection getUploadFileID(HttpServletRequest request);
30
31   /**
32    * 获得æŸ?个id的上传文件对象
33    * @param request
34    * @param id
35    * @return
36    */

37   public UploadFile getUploadFile(HttpServletRequest request, String JavaDoc id);
38
39   /**
40    * 删除æŸ?个id的上传文件
41    * @param request
42    * @param uploadFile
43    */

44   public void deleteUploadFile(HttpServletRequest request, UploadFile uploadFile);
45
46   /**
47    * 加入新的上传文件
48    * **/

49   public void addUploadFile(HttpServletRequest request, UploadFile uploadFile);
50
51   /**
52    * å?–走本次的上传图片
53    * @param request
54    * @return
55    */

56   public Collection loadAllUploadFile(HttpServletRequest request);
57
58 }
59
Popular Tags