public enum CompressionConfigValue extends java.lang.Enum<CompressionConfigValue> implements CompressionFactory
NamedFactory
for the Compression
.Modifier and Type | Field and Description |
---|---|
private CompressionFactory |
factory |
static java.util.Set<CompressionConfigValue> |
VALUES |
BY_NAME_COMPARATOR, NAME_EXTRACTOR
FALSE, TRUE
Modifier and Type | Method and Description |
---|---|
Compression |
create() |
static CompressionConfigValue |
fromName(java.lang.String n) |
java.lang.String |
getName() |
boolean |
isCompressionExecuted() |
boolean |
isDelayed()
Delayed compression is an Open-SSH specific feature which informs both the client and server to not compress data
before the session has been authenticated.
|
boolean |
isSupported() |
java.lang.String |
toString() |
static CompressionConfigValue |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CompressionConfigValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
setUpFactories
create, setUpBuiltinFactories, setUpTransformedFactories
findByName, getNameList, getNames, ofName, removeByName
all, any, of
public static final CompressionConfigValue YES
public static final CompressionConfigValue NO
public static final CompressionConfigValue DELAYED
public static final java.util.Set<CompressionConfigValue> VALUES
private final CompressionFactory factory
public static CompressionConfigValue[] values()
for (CompressionConfigValue c : CompressionConfigValue.values()) System.out.println(c);
public static CompressionConfigValue valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final java.lang.String getName()
getName
in interface NamedResource
public final Compression create()
create
in interface Factory<Compression>
public boolean isSupported()
isSupported
in interface OptionalFeature
public final java.lang.String toString()
toString
in class java.lang.Enum<CompressionConfigValue>
public boolean isDelayed()
CompressionInformation
isDelayed
in interface CompressionInformation
public boolean isCompressionExecuted()
isCompressionExecuted
in interface CompressionInformation
true
if there is any compression executed by this "compressor" - special case for
'none'public static CompressionConfigValue fromName(java.lang.String n)