Skip to content

Commit f310f6a

Browse files
committed
NET-291 - document effect of calling connect
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/net/branches/NET_2_0@963363 13f79535-47bb-0310-9956-ffa450edef68
1 parent bd4ebb4 commit f310f6a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/main/java/org/apache/commons/net/ftp/FTPClient.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,13 +894,16 @@ public void enterLocalActiveMode()
894894
* Set the current data connection mode to
895895
* <code> PASSIVE_LOCAL_DATA_CONNECTION_MODE </code>. Use this
896896
* method only for data transfers between the client and server.
897-
* This method causes a PASV command to be issued to the server
897+
* This method causes a PASV (or EPSV) command to be issued to the server
898898
* before the opening of every data connection, telling the server to
899899
* open a data port to which the client will connect to conduct
900900
* data transfers. The FTPClient will stay in
901901
* <code> PASSIVE_LOCAL_DATA_CONNECTION_MODE </code> until the
902902
* mode is changed by calling some other method such as
903903
* {@link #enterLocalActiveMode enterLocalActiveMode() }
904+
* <p>
905+
* <b>N.B.</b> currently calling any connect method will reset the mode to
906+
* ACTIVE_LOCAL_DATA_CONNECTION_MODE.
904907
***/
905908
public void enterLocalPassiveMode()
906909
{
@@ -1101,6 +1104,8 @@ public void setActiveExternalIPAddress(String ipAddress) throws UnknownHostExcep
11011104
* it again. The default file type is <code> FTP.ASCII_FILE_TYPE </code>
11021105
* if this method is never called.
11031106
* <p>
1107+
* <b>N.B.</b> currently calling any connect method will reset the mode to
1108+
* ACTIVE_LOCAL_DATA_CONNECTION_MODE.
11041109
* @param fileType The <code> _FILE_TYPE </code> constant indcating the
11051110
* type of file.
11061111
* @return True if successfully completed, false if not.
@@ -1137,6 +1142,9 @@ public boolean setFileType(int fileType) throws IOException
11371142
* is <code> FTP.NON_PRINT_TEXT_FORMAT </code> if this method is never
11381143
* called.
11391144
* <p>
1145+
* <b>N.B.</b> currently calling any connect method will reset the mode to
1146+
* ACTIVE_LOCAL_DATA_CONNECTION_MODE.
1147+
* <p>
11401148
* @param fileType The <code> _FILE_TYPE </code> constant indcating the
11411149
* type of file.
11421150
* @param formatOrByteSize The format of the file (one of the

0 commit comments

Comments
 (0)