FileUploadServerData.java
2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
package cn.com.glsx.merchants.util;
import javax.servlet.http.HttpServletRequest;
import java.io.Serializable;
@SuppressWarnings("serial")
public class FileUploadServerData implements Serializable {
public static final int UPLOAD_SUCCSSS = 0; // "上传文件成功!",
public static final int UPLOAD_FAILURE = 1; // "上传文件失败!"),
//private static final int UPLOAD_TYPE_ERROR = 2; // "上传文件类型错误!"),
//private static final int UPLOAD_OVERSIZE = 3; // "上传文件过大!"),
//private static final int UPLOAD_ZEROSIZE = 4; // "上传文件为空!"),
//private static final int UPLOAD_NOTFOUND = 5; // "上传文件路径错误!")
private Integer status = 0;
private String message = "";
private String url = "";
private String systemSign;
private String filePath;
private String param1;
private String param2;
private String param3;
private String secureUrl;
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getSystemSign() {
return systemSign;
}
public void setSystemSign(String systemSign) {
this.systemSign = systemSign;
}
public String getFilePath() {
return filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
public String getParam1() {
return param1;
}
public void setParam1(String param1) {
this.param1 = param1;
}
public String getParam2() {
return param2;
}
public void setParam2(String param2) {
this.param2 = param2;
}
public String getParam3() {
return param3;
}
public void setParam3(String param3) {
this.param3 = param3;
}
public String getSecureUrl() {
return secureUrl;
}
public void setSecureUrl(String secureUrl) {
this.secureUrl = secureUrl;
}
@Override
public String toString() {
return "FileUploadServerData{" +
"status=" + status +
", message='" + message + '\'' +
", url='" + url + '\'' +
", systemSign='" + systemSign + '\'' +
", filePath='" + filePath + '\'' +
", param1='" + param1 + '\'' +
", param2='" + param2 + '\'' +
", param3='" + param3 + '\'' +
", secureUrl='" + secureUrl + '\'' +
'}';
}
public FileUploadServerData() {
}
public FileUploadServerData(HttpServletRequest request) {
this.systemSign = request.getParameter("systemSign");
this.filePath = request.getParameter("filePath");
this.param1 = request.getParameter("param1");
this.param2 = request.getParameter("param2");
this.param3 = request.getParameter("param3");
}
}