Skip to content

Commit bdc3fa6

Browse files
committed
Fixed javadoc errors
1 parent 5ab035a commit bdc3fa6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+125
-65
lines changed

core/src/main/java/org/apache/ftpserver/command/Command.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public interface Command {
3838
* @param session The current {@link FtpIoSession}
3939
* @param context The current {@link FtpServerContext}
4040
* @param request The current {@link FtpRequest}
41-
* @throws IOException
42-
* @throws FtpException
41+
* @throws IOException If the command failed
42+
* @throws FtpException If we've got a FTP error
4343
*/
4444
void execute(FtpIoSession session, FtpServerContext context, FtpRequest request) throws IOException, FtpException;
4545
}

core/src/main/java/org/apache/ftpserver/command/impl/ABOR.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
/**
3232
* <strong>Internal class, do not use directly.</strong>
3333
*
34+
* <p>
3435
* <code>ABOR &lt;CRLF&gt;</code><br>
36+
* <p>
3537
*
3638
* This command tells the server to abort the previous FTP service command and
3739
* any associated transfer of data. No action is to be taken if the previous
@@ -43,7 +45,6 @@
4345
* @author <a href="http://mina.apache.org">Apache MINA Project</a>
4446
*/
4547
public class ABOR extends AbstractCommand {
46-
4748
/**
4849
* Execute command
4950
*

core/src/main/java/org/apache/ftpserver/command/impl/ACCT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,16 @@
3131
/**
3232
* <strong>Internal class, do not use directly.</strong>
3333
*
34+
* <p>
3435
* <code>ACCT &lt;CRLF&gt;</code><br>
36+
* <p>
3537
*
3638
* Acknowledges the ACCT (account) command with a 202 reply. The command however
3739
* is irrelevant to any workings.
3840
*
3941
* @author <a href="http://mina.apache.org">Apache MINA Project</a>
4042
*/
4143
public class ACCT extends AbstractCommand {
42-
4344
/**
4445
* Execute command.
4546
*

core/src/main/java/org/apache/ftpserver/command/impl/APPE.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545
/**
4646
* <strong>Internal class, do not use directly.</strong>
4747
*
48+
* <p>
4849
* <code>APPE &lt;SP&gt; &lt;pathname&gt; &lt;CRLF&gt;</code><br>
50+
* <p>
4951
*
5052
* This command causes the server-DTP to accept the data transferred via the
5153
* data connection and to store the data in a file at the server site. If the

core/src/main/java/org/apache/ftpserver/command/impl/AUTH.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
/**
4343
* <strong>Internal class, do not use directly.</strong>
44-
*
44+
* <p>
4545
* This server supports explicit SSL support.
4646
*
4747
* @author <a href="http://mina.apache.org">Apache MINA Project</a>

core/src/main/java/org/apache/ftpserver/command/impl/CDUP.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
/**
3737
* <strong>Internal class, do not use directly.</strong>
3838
*
39+
* <p>
3940
* <code>CDUP &lt;CRLF&gt;</code><br>
41+
* <p>
4042
*
4143
* This command is a special case of CWD, and is included to simplify the
4244
* implementation of programs for transferring directory trees between operating

core/src/main/java/org/apache/ftpserver/command/impl/CWD.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
/**
3737
* <strong>Internal class, do not use directly.</strong>
3838
*
39+
* <p>
3940
* <code>CWD &lt;SP&gt; &lt;pathname&gt; &lt;CRLF&gt;</code><br>
41+
* <p>
4042
*
4143
* This command allows the user to work with a different directory for file
4244
* storage or retrieval without altering his login or accounting information.

core/src/main/java/org/apache/ftpserver/command/impl/DELE.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
/**
3737
* <strong>Internal class, do not use directly.</strong>
3838
*
39+
* <p>
3940
* <code>DELE &lt;SP&gt; &lt;pathname&gt; &lt;CRLF&gt;</code><br>
41+
* <p>
4042
*
4143
* This command causes the file specified in the pathname to be deleted at the
4244
* server site.

core/src/main/java/org/apache/ftpserver/command/impl/EPRT.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,15 @@
3636

3737
/**
3838
* <strong>Internal class, do not use directly.</strong>
39-
*
39+
* <p>
4040
* The EPRT command allows for the specification of an extended address for the
4141
* data connection. The extended address MUST consist of the network protocol as
4242
* well as the network and transport addresses. The format of EPRT is:
4343
*
44-
* EPRT<space><d><net-prt><d><net-addr><d><tcp-port><d>
44+
* <p>
45+
* <code>EPRT&lt;space&gt;&lt;d&gt;&lt;net-prt&gt;&lt;d&gt;&lt;net-addr&gt;&lt;d&gt;&lt;tcp-port&gt;&lt;d&gt;</code>
46+
* <p>
47+
* where &lt;d&gt; is a delimiter, an ASCII char between 33 to 126. Character '|' is recommanded.
4548
*
4649
* @author <a href="http://mina.apache.org">Apache MINA Project</a>
4750
*/

core/src/main/java/org/apache/ftpserver/command/impl/EPSV.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
/**
3535
* <strong>Internal class, do not use directly.</strong>
36-
*
36+
* <p>
3737
* The EPSV command requests that a server listen on a data port and wait for a
3838
* connection. The EPSV command takes an optional argument. The response to this
3939
* command includes only the TCP port number of the listening connection. The

core/src/main/java/org/apache/ftpserver/command/impl/FEAT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
/**
3333
* <strong>Internal class, do not use directly.</strong>
34-
*
34+
* <p>
3535
* The FEAT command (introduced in [RFC-2389]) allows servers with additional
3636
* features to advertise these to a client by responding to the FEAT command. If
3737
* a server supports the FEAT command then it MUST advertise supported AUTH,

core/src/main/java/org/apache/ftpserver/command/impl/HELP.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
/**
3333
* <strong>Internal class, do not use directly.</strong>
3434
*
35+
* <p>
3536
* <code>HELP [&lt;SP&gt; &lt;string&gt;] &lt;CRLF&gt;</code><br>
37+
* <p>
3638
*
3739
* This command shall cause the server to send helpful information regarding its
3840
* implementation status over the control connection to the user. The command

core/src/main/java/org/apache/ftpserver/command/impl/LANG.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
/**
3535
* <strong>Internal class, do not use directly.</strong>
36-
*
36+
* <p>
3737
* A new command "LANG" is added to the FTP command set to allow server-FTP
3838
* process to determine in which language to present server greetings and the
3939
* textual part of command responses.

core/src/main/java/org/apache/ftpserver/command/impl/LIST.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
/**
4747
* <strong>Internal class, do not use directly.</strong>
4848
*
49+
* <p>
4950
* <code>LIST [&lt;SP&gt; &lt;pathname&gt;] &lt;CRLF&gt;</code><br>
51+
* <p>
5052
*
5153
* This command causes a list to be sent from the server to the passive DTP. If
5254
* the pathname specifies a directory or other group of files, the server should

core/src/main/java/org/apache/ftpserver/command/impl/MD5.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@
3939
/**
4040
* <strong>Internal class, do not use directly.</strong>
4141
*
42+
* <p>
4243
* <code>MD5 &lt;SP&gt; &lt;pathname&gt; &lt;CRLF&gt;</code><br>
4344
* <code>MMD5 &lt;SP&gt; &lt;pathnames&gt; &lt;CRLF&gt;</code><br>
45+
* <p>
4446
*
4547
* Returns the MD5 value for a file or multiple files according to
4648
* draft-twine-ftpmd5-00.txt.

core/src/main/java/org/apache/ftpserver/command/impl/MDTM.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
/**
3737
* <strong>Internal class, do not use directly.</strong>
3838
*
39+
* <p>
3940
* <code>MDTM &lt;SP&gt; &lt;pathname&gt; &lt;CRLF&gt;</code><br>
41+
* <p>
4042
*
4143
* Returns the date and time of when a file was modified.
4244
*

core/src/main/java/org/apache/ftpserver/command/impl/MKD.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
/**
3737
* <strong>Internal class, do not use directly.</strong>
3838
*
39+
* <p>
3940
* <code>MKD &lt;SP&gt; &lt;pathname&gt; &lt;CRLF&gt;</code><br>
41+
* <p>
4042
*
4143
* This command causes the directory specified in the pathname to be created as
4244
* a directory (if the pathname is absolute) or as a subdirectory of the current

core/src/main/java/org/apache/ftpserver/command/impl/MLSD.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545
/**
4646
* <strong>Internal class, do not use directly.</strong>
4747
*
48+
* <p>
4849
* <code>MLSD [&lt;SP&gt; &lt;pathname&gt;] &lt;CRLF&gt;</code><br>
50+
* <p>
4951
*
5052
* This command causes a list to be sent from the server to the passive DTP. The
5153
* pathname must specify a directory and the server should transfer a list of

core/src/main/java/org/apache/ftpserver/command/impl/MLST.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
/**
4040
* <strong>Internal class, do not use directly.</strong>
4141
*
42+
* <p>
4243
* <code>MLST &lt;SP&gt; &lt;pathname&gt; &lt;CRLF&gt;</code><br>
44+
* <p>
4345
*
4446
* Returns info on the file over the control connection.
4547
*

core/src/main/java/org/apache/ftpserver/command/impl/MODE.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
/**
3232
* <strong>Internal class, do not use directly.</strong>
3333
*
34-
* <code>MODE &lt;SP&gt; <mode-code> &lt;CRLF&gt;</code><br>
34+
* <p>
35+
* <code>MODE &lt;SP&gt; &lt;mode-code&gt; &lt;CRLF&gt;</code><br>
36+
* <p>
3537
*
3638
* The argument is a single Telnet character code specifying the data transfer
3739
* modes described in the Section on Transmission Modes.

core/src/main/java/org/apache/ftpserver/command/impl/NLST.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
/**
4747
* <strong>Internal class, do not use directly.</strong>
4848
*
49+
* <p>
4950
* <code>NLST [&lt;SP&gt; &lt;pathname&gt;] &lt;CRLF&gt;</code><br>
51+
* <p>
5052
*
5153
* This command causes a directory listing to be sent from server to user site.
5254
* The pathname should specify a directory or other system-specific file group

core/src/main/java/org/apache/ftpserver/command/impl/NOOP.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
/**
3333
* <strong>Internal class, do not use directly.</strong>
3434
*
35+
* <p>
3536
* <code>NOOP &lt;CRLF&gt;</code><br>
37+
* <p>
3638
*
3739
* This command does not affect any parameters or previously entered commands.
3840
* It specifies no action other than that the server send an OK reply.

core/src/main/java/org/apache/ftpserver/command/impl/OPTS.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
/**
3737
* <strong>Internal class, do not use directly.</strong>
3838
*
39-
* <code>OPTS&lt;SP&gt; <command> &lt;SP&gt; <option> &lt;CRLF&gt;</code><br>
39+
* <p>
40+
* <code>OPTS &lt;SP&gt; &lt;command&gt; &lt;SP&gt; &lt;option&gt; &lt;CRLF&gt;</code><br>
41+
* <p>
4042
*
4143
* This command shall cause the server use optional features for the command
4244
* specified.

core/src/main/java/org/apache/ftpserver/command/impl/OPTS_MLST.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
/**
3636
* <strong>Internal class, do not use directly.</strong>
3737
*
38+
* <p>
3839
* Client-Server listing negotation. Instruct the server what listing types to
3940
* include in machine directory/file listings.
4041
*

core/src/main/java/org/apache/ftpserver/command/impl/OPTS_UTF8.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
/**
3333
* <strong>Internal class, do not use directly.</strong>
3434
*
35+
* <p>
3536
* Client-Server encoding negotiation. Force server from default encoding to
3637
* UTF-8 and back. Note that the servers default encoding is UTF-8. So this
3738
* command has no effect.

core/src/main/java/org/apache/ftpserver/command/impl/PASS.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545
/**
4646
* <strong>Internal class, do not use directly.</strong>
4747
*
48-
* <code>PASS &lt;SP&gt; <password> &lt;CRLF&gt;</code><br>
48+
* <p>
49+
* <code>PASS &lt;SP&gt; &lt;password&gt; &lt;CRLF&gt;</code><br>
50+
* <p>
4951
*
5052
* The argument field is a Telnet string specifying the user's password. This
5153
* command must be immediately preceded by the user name command.

core/src/main/java/org/apache/ftpserver/command/impl/PASV.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,35 +39,36 @@
3939
/**
4040
* <strong>Internal class, do not use directly.</strong>
4141
*
42+
* <p>
4243
* <code>PASV &lt;CRLF&gt;</code><br>
44+
* <p>
4345
*
4446
* This command requests the server-DTP to "listen" on a data port (which is not
4547
* its default data port) and to wait for a connection rather than initiate one
4648
* upon receipt of a transfer command. The response to this command includes the
4749
* host and port address this server is listening on.
48-
*
50+
* <p>
4951
* FTPServer allows the user to configure an "external address" at the listener
5052
* level which will be the one reported by PASV response. This might solve some of
5153
* the issues with NATed addresses ( the reported IP is internal and not accesible by the
5254
* client) but not all of them - for example, if the FTPServer host has a dynamic IP
5355
* address. The solution for all these cases would be switching to the EPSV command,
5456
* which doesn't report any IP address back.
55-
*
57+
* <p>
5658
* In the case that EPSV command isn't available to the client, FTPServer integrators
5759
* can implement their own getPassiveExternalAddress to modify how the External IP
5860
* is resolved. One common approach would be retrieving this address from a webpage
5961
* which prints out the visitor's IP address. Another approach could be returning the
6062
* external IP address from the USER configuration(as when a single server is mapped
6163
* into different addresses).
62-
*
64+
* <p>
6365
* Please note that PASV command is an internal classes and thus shouldn't be extended.
6466
* Integrators may decide to extend it at their own risk, but they should be aware that
6567
* the 'internal API' can be changed at any moment. Besides, in some environments
6668
* (OSGI) internal classes are not accesible and thus overriding won't work.
6769
* Still, the getPassiveExternalAddress method is provided for convenience so the
6870
* code to overwrite when reimplementing PASV command can be easily located.
6971
*
70-
*
7172
* @author <a href="http://mina.apache.org">Apache MINA Project</a>
7273
*/
7374
public class PASV extends AbstractCommand {

core/src/main/java/org/apache/ftpserver/command/impl/PBSZ.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
/**
3333
* <strong>Internal class, do not use directly.</strong>
34-
*
34+
* <p>
3535
* Protection buffer size.
3636
*
3737
* @author <a href="http://mina.apache.org">Apache MINA Project</a>

core/src/main/java/org/apache/ftpserver/command/impl/PORT.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
/**
4141
* <strong>Internal class, do not use directly.</strong>
4242
*
43-
* <code>PORT &lt;SP&gt; <host-port> &lt;CRLF&gt;</code><br>
43+
* <p>
44+
* <code>PORT &lt;SP&gt; &lt;host-port&gt; &lt;CRLF&gt;</code><br>
45+
* <p>
4446
*
4547
* The argument is a HOST-PORT specification for the data port to be used in
4648
* data connection. There are defaults for both the user and server data ports,
@@ -51,9 +53,11 @@
5153
* decimal number (in character string representation). The fields are separated
5254
* by commas. A port command would be:
5355
*
56+
* <pre>
5457
* PORT h1,h2,h3,h4,p1,p2
58+
* </pre>
5559
*
56-
* where h1 is the high order 8 bits of the internet host address.
60+
* where <code>h1</code> is the high order 8 bits of the internet host address.
5761
*
5862
* @author <a href="http://mina.apache.org">Apache MINA Project</a>
5963
*/

core/src/main/java/org/apache/ftpserver/command/impl/PROT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
/**
3636
* <strong>Internal class, do not use directly.</strong>
37-
*
37+
* <p>
3838
* Data channel protection level.
3939
*
4040
* @author <a href="http://mina.apache.org">Apache MINA Project</a>

core/src/main/java/org/apache/ftpserver/command/impl/PWD.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
/**
3434
* <strong>Internal class, do not use directly.</strong>
3535
*
36+
* <p>
3637
* <code>PWD &lt;CRLF&gt;</code><br>
38+
* <p>
3739
*
3840
* This command causes the name of the current working directory to be returned
3941
* in the reply.

core/src/main/java/org/apache/ftpserver/command/impl/QUIT.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
/**
3434
* <strong>Internal class, do not use directly.</strong>
3535
*
36+
* <p>
3637
* <code>QUIT &lt;CRLF&gt;</code><br>
38+
* <p>
3739
*
3840
* This command terminates a USER and if file transfer is not in progress, the
3941
* server closes the control connection.

core/src/main/java/org/apache/ftpserver/command/impl/REIN.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
/**
3232
* <strong>Internal class, do not use directly.</strong>
3333
*
34+
* <p>
3435
* <code>REIN &lt;CRLF&gt;</code><br>
36+
* <p>
3537
*
3638
* This command flushes a USER, without affecting transfers in progress. The
3739
* server state should otherwise be as when the user first connects.

0 commit comments

Comments
 (0)