public enum ConnectionMode extends Enum<ConnectionMode>
Enum Constant and Description |
---|
ACTIVE
Indicates that FTP servers should connect to clients' data ports to initiate data transfers.
|
PASSIVE
Indicates that FTP servers are in passive mode, requiring clients to connect to the servers' data ports to initiate transfers.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionMode ACTIVE
public static final ConnectionMode PASSIVE
public static ConnectionMode[] values()
for (ConnectionMode c : ConnectionMode.values()) System.out.println(c);
public static ConnectionMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016–2024. All rights reserved.