KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > za > org > coefficient > util > common > BaseMultipartRequest


1 /*
2  * Coefficient - facilitates project based collaboration
3  * Copyright (C) 2003, Dylan Etkin, CSIR icomtek
4  * PO Box 395
5  * Pretoria 0001, RSA
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */

19 package za.org.coefficient.util.common;
20
21 import org.apache.commons.fileupload.FileUploadException;
22
23 import java.util.Enumeration JavaDoc;
24 import java.util.Map JavaDoc;
25
26 /**
27  * <p>Project: coefficient</p>
28  * <p>Description: This is the base implementation of the
29  * HttpServletRequestWrapper interface for coefficient</p>
30  * <p>Copyright: Copyright (c) 2003</p>
31  * <p>Company: CSIR</p>
32  * @author tfogwill
33  * @version 1.0
34  */

35 public abstract class BaseMultipartRequest {
36         
37     /**
38      * Returns an uploaded file.
39      * @param name the name of the parameter
40      * @return the file or null if it does not exists
41      */

42     public abstract UploadedFile getFileParameter(String JavaDoc name) throws FileUploadException;
43     
44     public abstract String JavaDoc getParameter(String JavaDoc name);
45     
46     public abstract Map JavaDoc getParameterMap();
47     
48     public abstract Enumeration JavaDoc getParameterNames();
49     
50     public abstract String JavaDoc[] getParameterValues(String JavaDoc name);
51 }
52
Popular Tags