Enum AbstractRemoteFileOutboundGateway.Command
java.lang.Object
java.lang.Enum<AbstractRemoteFileOutboundGateway.Command>
org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway.Command
- All Implemented Interfaces:
Serializable
,Comparable<AbstractRemoteFileOutboundGateway.Command>
,Constable
- Enclosing class:
- AbstractRemoteFileOutboundGateway<F>
public static enum AbstractRemoteFileOutboundGateway.Command extends Enum<AbstractRemoteFileOutboundGateway.Command>
Enumeration of commands supported by the gateways.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant 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). -
Method Summary
Modifier and Type Method 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.
-
Enum Constant Details
-
LS
(ls) List remote files. -
NLST
(nlst) List remote file names. -
GET
(get) Retrieve a remote file. -
RM
(rm) Remove a remote file (path - including wildcards). -
MGET
(mget) Retrieve multiple files matching a wildcard path. -
MV
(mv) Move (rename) a remote file. -
PUT
(put) Put a local file to the remote system. -
MPUT
(mput) Put multiple local files to the remote system.
-
-
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
-
getCommand
-
toCommand
-