01: package com.bostechcorp.cbesb.runtime.ftp.interpreter;
02:
03: import java.io.File;
04:
05: import org.apache.commons.net.ftp.FTPClient;
06:
07: /**
08: * The context object passed to the interpreter's execution method.
09: * @author elu
10: *
11: */
12: public class FtpExecContext {
13: private FTPClient ftpclient;
14: private File localWorkDir = new File(".");
15:
16: /**
17: * @param ftpclient
18: * @param localWorkDir
19: */
20: public FtpExecContext(FTPClient ftpclient) {
21: super ();
22: this .ftpclient = ftpclient;
23: }
24:
25: /**
26: * @return the ftpclient
27: */
28: public FTPClient getFtpclient() {
29: return ftpclient;
30: }
31:
32: /**
33: * @param ftpclient the ftpclient to set
34: */
35: public void setFtpclient(FTPClient ftpclient) {
36: this .ftpclient = ftpclient;
37: }
38:
39: /**
40: * @return the localWorkDir
41: */
42: public File getLocalWorkDir() {
43: return localWorkDir;
44: }
45:
46: /**
47: * @param localWorkDir the localWorkDir to set
48: */
49: public void setLocalWorkDir(File localWorkDir) {
50: this.localWorkDir = localWorkDir;
51: }
52:
53: }
|