01: /*
02: * JFox - The most lightweight Java EE Application Server!
03: * more details please visit http://www.huihoo.org/jfox or http://www.jfox.org.cn.
04: *
05: * JFox is licenced and re-distributable under GNU LGPL.
06: */
07: package org.jfox.mvc;
08:
09: /**
10: * 用æ?¥è£…ä¸Šä¼ çš„æ–‡ä»¶
11: *
12: * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
13: */
14: public class FileUploaded {
15:
16: private String fieldname;
17: private String filename;
18: private byte[] content;
19:
20: public FileUploaded(String fieldname, String filename,
21: byte[] content) {
22: this .fieldname = fieldname;
23: this .filename = filename;
24: this .content = content;
25: }
26:
27: public String getFieldname() {
28: return fieldname;
29: }
30:
31: public String getFilename() {
32: return filename;
33: }
34:
35: public byte[] getContent() {
36: return content;
37: }
38:
39: public String toString() {
40: return "Uploaded file, name=" + getFilename();
41: }
42:
43: public static void main(String[] args) {
44:
45: }
46: }
|