KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > web > bean > FileUploadBean


1 /*
2  * Copyright (C) 2005 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.web.bean;
18
19 import java.io.File JavaDoc;
20
21 /**
22  * Bean to hold the results of a file upload
23  *
24  * @author gavinc
25  */

26 public final class FileUploadBean
27 {
28    public static final String JavaDoc FILE_UPLOAD_BEAN_NAME = "alfresco.UploadBean";
29    
30    private File JavaDoc file;
31    private String JavaDoc fileName;
32    private String JavaDoc filePath;
33    
34    /**
35     * @return Returns the file
36     */

37    public File JavaDoc getFile()
38    {
39       return file;
40    }
41    
42    /**
43     * @param file The file to set
44     */

45    public void setFile(File JavaDoc file)
46    {
47       this.file = file;
48    }
49
50    /**
51     * @return Returns the name of the file uploaded
52     */

53    public String JavaDoc getFileName()
54    {
55       return fileName;
56    }
57
58    /**
59     * @param fileName The name of the uploaded file
60     */

61    public void setFileName(String JavaDoc fileName)
62    {
63       this.fileName = fileName;
64    }
65
66    /**
67     * @return Returns the path of the file uploaded
68     */

69    public String JavaDoc getFilePath()
70    {
71       return filePath;
72    }
73
74    /**
75     * @param filePath The file path of the uploaded file
76     */

77    public void setFilePath(String JavaDoc filePath)
78    {
79       this.filePath = filePath;
80    }
81 }
82
Popular Tags