public static enum AbstractRemoteFileOutboundGateway.Command extends Enum<AbstractRemoteFileOutboundGateway.Command>
Enum Constant and Description |
---|
GET
(get) Retrieve a remote file.
|
LS
(ls) List remote files.
|
MGET
(mget) Retrieve multiple files matching a wildcard path.
|
MPUT
(mput) Put multiple local files to the remote system.
|
MV
(mv) Move (rename) a remote file.
|
NLST
(nlst) List remote file names.
|
PUT
(put) Put a local file to the remote system.
|
RM
(rm) Remove a remote file (path - including wildcards).
|
Modifier and Type | Method and Description |
---|---|
String |
getCommand() |
static AbstractRemoteFileOutboundGateway.Command |
toCommand(String cmd) |
static AbstractRemoteFileOutboundGateway.Command |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AbstractRemoteFileOutboundGateway.Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractRemoteFileOutboundGateway.Command LS
public static final AbstractRemoteFileOutboundGateway.Command NLST
public static final AbstractRemoteFileOutboundGateway.Command GET
public static final AbstractRemoteFileOutboundGateway.Command RM
public static final AbstractRemoteFileOutboundGateway.Command MGET
public static final AbstractRemoteFileOutboundGateway.Command MV
public static final AbstractRemoteFileOutboundGateway.Command PUT
public static final AbstractRemoteFileOutboundGateway.Command MPUT
public static AbstractRemoteFileOutboundGateway.Command[] values()
for (AbstractRemoteFileOutboundGateway.Command c : AbstractRemoteFileOutboundGateway.Command.values()) System.out.println(c);
public static AbstractRemoteFileOutboundGateway.Command 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 nullpublic String getCommand()
public static AbstractRemoteFileOutboundGateway.Command toCommand(String cmd)