01: package com.coldcore.coloradoftp.plugin.webcam;
02:
03: import com.coldcore.coloradoftp.plugin.webcam.task.UploadTask;
04:
05: /**
06: * Intercepts uploads that suppose to execute special web cam action instead of common
07: * filesystem save routines.
08: */
09: public class UploadInterceptor {
10:
11: protected String username;
12: protected UploadTask task;
13:
14: /** Get username
15: * @return Username
16: */
17: public String getUsername() {
18: return username;
19: }
20:
21: /** Set username
22: * @param username Username
23: */
24: public void setUsername(String username) {
25: this .username = username;
26: }
27:
28: /** Get action to execute upon upload
29: * @return Task
30: */
31: public UploadTask getTask() {
32: return task;
33: }
34:
35: /** Set action to execute upon upload
36: * @param task Task
37: */
38: public void setTask(UploadTask task) {
39: this.task = task;
40: }
41: }
|