我正在研究 java ftp-client 的一些代码,在一种方法中 this.-operator 被使用,我不知道是什么意思。“this.processFtpRequest”代表什么?
* Initializes the FTP control connection.
* @param alias the user-ID
* @param binaryMode true for binary transmission, false for ASCII
* @throws SecurityException if the given alias or password is invalid
* @throws IOException if there is an I/O related problem
*/
private synchronized void initialize(final String alias, final String password, final boolean binaryMode) throws IOException {
FtpResponse ftpResponse = FtpResponse.parse(this.controlConnectionSource);
Logger.getGlobal().log(Level.INFO, ftpResponse.toString());
if (ftpResponse.getCode() != 220) throw new ProtocolException(ftpResponse.toString());
ftpResponse = this.processFtpRequest("USER " + (alias == null ? "guest" : alias));
if (ftpResponse.getCode() == 331) {
ftpResponse = this.processFtpRequest("PASS " + (password == null ? "" : password));
}
if (ftpResponse.getCode() != 230) throw new SecurityException(ftpResponse.toString());
ftpResponse = this.processFtpRequest("TYPE " + (binaryMode ? "I" : "A"));
if (ftpResponse.getCode() != 200) throw new ProtocolException(ftpResponse.toString());
}