Package org.apache.ftpserver.ftplet
Enum FtpletResult
- All Implemented Interfaces:
Serializable,Comparable<FtpletResult>
This class encapsulates the return values of the ftplet methods.
DEFAULT < NO_FTPLET < SKIP < DISCONNECT
- Author:
- Apache MINA Project
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis return value indicates that the next ftplet method will be called.It indicates that the server will skip and disconnect the client.This return value indicates that the other ftplet methods will not be called but the ftpserver will continue processing this request.It indicates that the ftpserver will skip everything. -
Method Summary
Modifier and TypeMethodDescriptionstatic FtpletResultReturns the enum constant of this type with the specified name.static FtpletResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
This return value indicates that the next ftplet method will be called. If no other ftplet is available, the ftpserver will process the request. -
NO_FTPLET
This return value indicates that the other ftplet methods will not be called but the ftpserver will continue processing this request. -
SKIP
It indicates that the ftpserver will skip everything. No further processing (both ftplet and server) will be done for this request. -
DISCONNECT
It indicates that the server will skip and disconnect the client. No other request from the same client will be served.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-