Enum TcpForwardingFilter.Type

java.lang.Object
java.lang.Enum<TcpForwardingFilter.Type>
org.apache.sshd.server.forward.TcpForwardingFilter.Type
All Implemented Interfaces:
Serializable, Comparable<TcpForwardingFilter.Type>, org.apache.sshd.common.NamedResource
Enclosing interface:
TcpForwardingFilter

public static enum TcpForwardingFilter.Type extends Enum<TcpForwardingFilter.Type> implements org.apache.sshd.common.NamedResource
The type of requested connection forwarding. The type's getName() method returns the SSH request type
Author:
Apache MINA SSHD Project
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static TcpForwardingFilter.Type[] 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 TcpForwardingFilter.Type 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 org.apache.sshd.common.NamedResource
    • fromString

      public static TcpForwardingFilter.Type fromString(String name)
      Parameters:
      name - Either the enum name or the request - ignored if null/empty
      Returns:
      The matching TcpForwardingFilter.Type value - case insensitive, or null if no match found
      See Also:
    • fromName

      public static TcpForwardingFilter.Type fromName(String name)
      Parameters:
      name - The request name - ignored if null/empty
      Returns:
      The matching TcpForwardingFilter.Type value - case insensitive, or null if no match found
    • fromEnumName

      public static TcpForwardingFilter.Type fromEnumName(String name)
      Parameters:
      name - The enum value name - ignored if null/empty
      Returns:
      The matching TcpForwardingFilter.Type value - case insensitive, or null if no match found