List of usage examples for org.apache.commons.net.ftp FTPCmd USER
FTPCmd USER
To view the source code for org.apache.commons.net.ftp FTPCmd USER.
Click Source Link
From source file:com.adaptris.ftp.ApacheFtpClientImpl.java
@Override public void connect(String user, String password) throws IOException { try {//from w w w. j av a 2s. co m acquireLock(); log("{} {}", FTPCmd.USER, user); log("{} ********", FTPCmd.PASS); handleReturnValue(ftpClient().login(user, password)); } finally { logReply(ftpClient().getReplyStrings()); releaseLock(); } }
From source file:com.adaptris.ftp.ApacheFtpClientImpl.java
@Override public void connect(String user, String password, String account) throws IOException { try {/*from w w w. j a v a2 s .co m*/ acquireLock(); log("{} {}", FTPCmd.USER, user); log("{} ********", FTPCmd.PASS); log("{} {}", FTPCmd.ACCT, user); handleReturnValue(ftpClient().login(user, password, account)); } finally { logReply(ftpClient().getReplyStrings()); releaseLock(); } }
From source file:com.atomicleopard.thundr.ftp.commons.FTP.java
/*** * A convenience method to send the FTP USER command to the server, * receive the reply, and return the reply code. * <p>//from w ww .jav a2 s. co m * @param username The username to login under. * @return The reply code received from the server. * @exception FTPConnectionClosedException * If the FTP server prematurely closes the connection as a result * of the client being idle or some other reason causing the server * to send FTP reply code 421. This exception may be caught either * as an IOException or independently as itself. * @exception IOException If an I/O error occurs while either sending the * command or receiving the server reply. ***/ public int user(String username) throws IOException { return sendCommand(FTPCmd.USER, username); }