Enum Class DataConnectionMode
- All Implemented Interfaces:
Serializable,Comparable<DataConnectionMode>,Constable
Selects whether an
FtpFileSystem uses active or passive mode for its data connections.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionData transfer mode where the server connects to the client's data port.Data transfer mode where the client connects to the server's data port and that the server is in passive mode. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataConnectionModeReturns the enum constant of this class with the specified name.static DataConnectionMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE_LOCAL
Data transfer mode where the server connects to the client's data port. This is the default mode. -
PASSIVE_LOCAL
Data transfer mode where the client connects to the server's data port and that the server is in passive mode.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-