Enum Class ChannelType

java.lang.Object
java.lang.Enum<ChannelType>
org.aoju.bus.extra.ssh.ChannelType
All Implemented Interfaces:
Serializable, Comparable<ChannelType>, Constable

public enum ChannelType extends Enum<ChannelType>
Jsch支持的Channel类型
Since:
Java 17+
Author:
Kimi Liu
  • Enum Constant Details

    • SESSION

      public static final ChannelType SESSION
      Session
    • SHELL

      public static final ChannelType SHELL
      shell
    • EXEC

      public static final ChannelType EXEC
      exec
    • X11

      public static final ChannelType X11
      x11
    • AGENT_FORWARDING

      public static final ChannelType AGENT_FORWARDING
      agent forwarding
    • DIRECT_TCPIP

      public static final ChannelType DIRECT_TCPIP
      direct tcpip
    • FORWARDED_TCPIP

      public static final ChannelType FORWARDED_TCPIP
      forwarded tcpip
    • SFTP

      public static final ChannelType SFTP
      sftp
    • SUBSYSTEM

      public static final ChannelType SUBSYSTEM
      subsystem
  • Method Details

    • values

      public static ChannelType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ChannelType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      获取值
      Returns: