Enum CompressionConfigValue

java.lang.Object
java.lang.Enum<CompressionConfigValue>
org.apache.sshd.common.config.CompressionConfigValue
All Implemented Interfaces:
Serializable, Comparable<CompressionConfigValue>, Supplier<Compression>, BuiltinFactory<Compression>, CompressionFactory, CompressionInformation, Factory<Compression>, NamedFactory<Compression>, NamedResource, OptionalFeature

public enum CompressionConfigValue extends Enum<CompressionConfigValue> implements CompressionFactory
Provides a "bridge" between the configuration values and the actual NamedFactory for the Compression.
Author:
Apache MINA SSHD Project
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static CompressionConfigValue[] 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

      public static CompressionConfigValue valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getName

      public final String getName()
      Specified by:
      getName in interface NamedResource
      Returns:
      The resource name
    • create

      public final Compression create()
      Specified by:
      create in interface Factory<Compression>
      Returns:
      A new instance
    • isSupported

      public boolean isSupported()
      Specified by:
      isSupported in interface OptionalFeature
    • toString

      public final String toString()
      Overrides:
      toString in class Enum<CompressionConfigValue>
    • isDelayed

      public boolean isDelayed()
      Description copied from interface: CompressionInformation
      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.
      Specified by:
      isDelayed in interface CompressionInformation
      Returns:
      if the compression is delayed after authentication or not
    • isCompressionExecuted

      public boolean isCompressionExecuted()
      Specified by:
      isCompressionExecuted in interface CompressionInformation
      Returns:
      true if there is any compression executed by this "compressor" - special case for 'none'
    • fromName

      public static CompressionConfigValue fromName(String n)