public static enum AbstractRemoteFileOutboundGateway.Option extends Enum<AbstractRemoteFileOutboundGateway.Option>
Enum Constant and Description |
---|
ALL
(-a) Include files beginning with
. , including directories .
and .. in the results (ls). |
DELETE
(-D) Delete the remote file after successful transfer (get, mget).
|
EXCEPTION_WHEN_EMPTY
(-x) Throw an exception if no files returned (mget).
|
LINKS
(-links) Include links in the results (ls).
|
NAME_ONLY
(-1) Don't return full file information; just the name (ls).
|
NOSORT
(-f) Do not sort the results (ls with NAME_ONLY).
|
PRESERVE_TIMESTAMP
(-P) Preserve the server timestamp (get, mget).
|
RECURSIVE
(-R) Recursive (ls, mget)
|
STREAM
(-stream) Streaming 'get' (returns InputStream); user must call
Session.close() . |
SUBDIRS
(-dirs) Include directories in the results (ls).
|
Modifier and Type | Method and Description |
---|---|
String |
getOption() |
static AbstractRemoteFileOutboundGateway.Option |
toOption(String opt) |
static AbstractRemoteFileOutboundGateway.Option |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AbstractRemoteFileOutboundGateway.Option[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractRemoteFileOutboundGateway.Option NAME_ONLY
public static final AbstractRemoteFileOutboundGateway.Option ALL
.
, including directories .
and ..
in the results (ls).public static final AbstractRemoteFileOutboundGateway.Option NOSORT
public static final AbstractRemoteFileOutboundGateway.Option SUBDIRS
public static final AbstractRemoteFileOutboundGateway.Option LINKS
public static final AbstractRemoteFileOutboundGateway.Option PRESERVE_TIMESTAMP
public static final AbstractRemoteFileOutboundGateway.Option EXCEPTION_WHEN_EMPTY
public static final AbstractRemoteFileOutboundGateway.Option RECURSIVE
public static final AbstractRemoteFileOutboundGateway.Option STREAM
Session.close()
.public static final AbstractRemoteFileOutboundGateway.Option DELETE
public static AbstractRemoteFileOutboundGateway.Option[] values()
for (AbstractRemoteFileOutboundGateway.Option c : AbstractRemoteFileOutboundGateway.Option.values()) System.out.println(c);
public static AbstractRemoteFileOutboundGateway.Option 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 getOption()
public static AbstractRemoteFileOutboundGateway.Option toOption(String opt)