1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_java_net_protocol_ftp_FTPConnection__
|
5 |
|
|
#define __gnu_java_net_protocol_ftp_FTPConnection__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
extern "Java"
|
11 |
|
|
{
|
12 |
|
|
namespace gnu
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace net
|
17 |
|
|
{
|
18 |
|
|
class CRLFOutputStream;
|
19 |
|
|
class LineInputStream;
|
20 |
|
|
namespace protocol
|
21 |
|
|
{
|
22 |
|
|
namespace ftp
|
23 |
|
|
{
|
24 |
|
|
class DTP;
|
25 |
|
|
class FTPConnection;
|
26 |
|
|
class FTPResponse;
|
27 |
|
|
}
|
28 |
|
|
}
|
29 |
|
|
}
|
30 |
|
|
}
|
31 |
|
|
}
|
32 |
|
|
namespace java
|
33 |
|
|
{
|
34 |
|
|
namespace net
|
35 |
|
|
{
|
36 |
|
|
class Socket;
|
37 |
|
|
}
|
38 |
|
|
}
|
39 |
|
|
namespace javax
|
40 |
|
|
{
|
41 |
|
|
namespace net
|
42 |
|
|
{
|
43 |
|
|
namespace ssl
|
44 |
|
|
{
|
45 |
|
|
class TrustManager;
|
46 |
|
|
}
|
47 |
|
|
}
|
48 |
|
|
}
|
49 |
|
|
}
|
50 |
|
|
|
51 |
|
|
class gnu::java::net::protocol::ftp::FTPConnection : public ::java::lang::Object
|
52 |
|
|
{
|
53 |
|
|
|
54 |
|
|
public:
|
55 |
|
|
FTPConnection(::java::lang::String *);
|
56 |
|
|
FTPConnection(::java::lang::String *, jint);
|
57 |
|
|
FTPConnection(::java::lang::String *, jint, jint, jint, jboolean);
|
58 |
|
|
virtual jboolean authenticate(::java::lang::String *, ::java::lang::String *);
|
59 |
|
|
virtual jboolean starttls(jboolean);
|
60 |
|
|
virtual jboolean starttls(jboolean, ::javax::net::ssl::TrustManager *);
|
61 |
|
|
virtual jboolean changeWorkingDirectory(::java::lang::String *);
|
62 |
|
|
virtual jboolean changeToParentDirectory();
|
63 |
|
|
virtual void reinitialize();
|
64 |
|
|
virtual void logout();
|
65 |
|
|
public: // actually protected
|
66 |
|
|
virtual void initialiseDTP();
|
67 |
|
|
public:
|
68 |
|
|
virtual void setPassive(jboolean);
|
69 |
|
|
virtual jint getRepresentationType();
|
70 |
|
|
virtual void setRepresentationType(jint);
|
71 |
|
|
virtual jint getFileStructure();
|
72 |
|
|
virtual void setFileStructure(jint);
|
73 |
|
|
virtual jint getTransferMode();
|
74 |
|
|
virtual void setTransferMode(jint);
|
75 |
|
|
virtual ::java::io::InputStream * retrieve(::java::lang::String *);
|
76 |
|
|
virtual ::java::io::OutputStream * store(::java::lang::String *);
|
77 |
|
|
virtual ::java::io::OutputStream * append(::java::lang::String *);
|
78 |
|
|
virtual void allocate(jlong);
|
79 |
|
|
virtual jboolean rename(::java::lang::String *, ::java::lang::String *);
|
80 |
|
|
virtual jboolean abort();
|
81 |
|
|
virtual jboolean delete$(::java::lang::String *);
|
82 |
|
|
virtual jboolean removeDirectory(::java::lang::String *);
|
83 |
|
|
virtual jboolean makeDirectory(::java::lang::String *);
|
84 |
|
|
virtual ::java::lang::String * getWorkingDirectory();
|
85 |
|
|
virtual ::java::io::InputStream * list(::java::lang::String *);
|
86 |
|
|
virtual ::java::util::List * nameList(::java::lang::String *);
|
87 |
|
|
virtual ::java::lang::String * system();
|
88 |
|
|
virtual void noop();
|
89 |
|
|
public: // actually protected
|
90 |
|
|
virtual void send(::java::lang::String *);
|
91 |
|
|
virtual ::gnu::java::net::protocol::ftp::FTPResponse * getResponse();
|
92 |
|
|
virtual ::gnu::java::net::protocol::ftp::FTPResponse * readResponse();
|
93 |
|
|
public: // actually package-private
|
94 |
|
|
static jint parseCode(::java::lang::String *);
|
95 |
|
|
public:
|
96 |
|
|
static const jint FTP_PORT = 21;
|
97 |
|
|
static const jint FTP_DATA_PORT = 20;
|
98 |
|
|
public: // actually protected
|
99 |
|
|
static ::java::lang::String * USER;
|
100 |
|
|
static ::java::lang::String * PASS;
|
101 |
|
|
static ::java::lang::String * ACCT;
|
102 |
|
|
static ::java::lang::String * CWD;
|
103 |
|
|
static ::java::lang::String * CDUP;
|
104 |
|
|
static ::java::lang::String * SMNT;
|
105 |
|
|
static ::java::lang::String * REIN;
|
106 |
|
|
static ::java::lang::String * QUIT;
|
107 |
|
|
static ::java::lang::String * PORT;
|
108 |
|
|
static ::java::lang::String * PASV;
|
109 |
|
|
static ::java::lang::String * TYPE;
|
110 |
|
|
static ::java::lang::String * STRU;
|
111 |
|
|
static ::java::lang::String * MODE;
|
112 |
|
|
static ::java::lang::String * RETR;
|
113 |
|
|
static ::java::lang::String * STOR;
|
114 |
|
|
static ::java::lang::String * STOU;
|
115 |
|
|
static ::java::lang::String * APPE;
|
116 |
|
|
static ::java::lang::String * ALLO;
|
117 |
|
|
static ::java::lang::String * REST;
|
118 |
|
|
static ::java::lang::String * RNFR;
|
119 |
|
|
static ::java::lang::String * RNTO;
|
120 |
|
|
static ::java::lang::String * ABOR;
|
121 |
|
|
static ::java::lang::String * DELE;
|
122 |
|
|
static ::java::lang::String * RMD;
|
123 |
|
|
static ::java::lang::String * MKD;
|
124 |
|
|
static ::java::lang::String * PWD;
|
125 |
|
|
static ::java::lang::String * LIST;
|
126 |
|
|
static ::java::lang::String * NLST;
|
127 |
|
|
static ::java::lang::String * SITE;
|
128 |
|
|
static ::java::lang::String * SYST;
|
129 |
|
|
static ::java::lang::String * STAT;
|
130 |
|
|
static ::java::lang::String * HELP;
|
131 |
|
|
static ::java::lang::String * NOOP;
|
132 |
|
|
static ::java::lang::String * AUTH;
|
133 |
|
|
static ::java::lang::String * PBSZ;
|
134 |
|
|
static ::java::lang::String * PROT;
|
135 |
|
|
static ::java::lang::String * CCC;
|
136 |
|
|
static ::java::lang::String * TLS;
|
137 |
|
|
public:
|
138 |
|
|
static const jint TYPE_ASCII = 1;
|
139 |
|
|
static const jint TYPE_EBCDIC = 2;
|
140 |
|
|
static const jint TYPE_BINARY = 3;
|
141 |
|
|
static const jint STRUCTURE_FILE = 1;
|
142 |
|
|
static const jint STRUCTURE_RECORD = 2;
|
143 |
|
|
static const jint STRUCTURE_PAGE = 3;
|
144 |
|
|
static const jint MODE_STREAM = 1;
|
145 |
|
|
static const jint MODE_BLOCK = 2;
|
146 |
|
|
static const jint MODE_COMPRESSED = 3;
|
147 |
|
|
private:
|
148 |
|
|
static ::java::lang::String * US_ASCII;
|
149 |
|
|
public: // actually protected
|
150 |
|
|
::java::net::Socket * __attribute__((aligned(__alignof__( ::java::lang::Object)))) socket;
|
151 |
|
|
::gnu::java::net::LineInputStream * in;
|
152 |
|
|
::gnu::java::net::CRLFOutputStream * out;
|
153 |
|
|
jint connectionTimeout;
|
154 |
|
|
jint timeout;
|
155 |
|
|
jboolean debug;
|
156 |
|
|
::gnu::java::net::protocol::ftp::DTP * dtp;
|
157 |
|
|
jint representationType;
|
158 |
|
|
jint fileStructure;
|
159 |
|
|
jint transferMode;
|
160 |
|
|
jboolean passive;
|
161 |
|
|
public:
|
162 |
|
|
static ::java::lang::Class class$;
|
163 |
|
|
};
|
164 |
|
|
|
165 |
|
|
#endif // __gnu_java_net_protocol_ftp_FTPConnection__
|