Package org.apache.sshd.server.config
Enum AllowTcpForwardingValue
- java.lang.Object
-
- java.lang.Enum<AllowTcpForwardingValue>
-
- org.apache.sshd.server.config.AllowTcpForwardingValue
-
- All Implemented Interfaces:
Serializable
,Comparable<AllowTcpForwardingValue>
,TcpForwardingFilter
public enum AllowTcpForwardingValue extends Enum<AllowTcpForwardingValue> implements TcpForwardingFilter
- Author:
- Apache MINA SSHD Project
- See Also:
- sshd_config(5) section
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.sshd.server.forward.TcpForwardingFilter
TcpForwardingFilter.Type
-
-
Field Summary
Fields Modifier and Type Field Description static Set<AllowTcpForwardingValue>
VALUES
-
Fields inherited from interface org.apache.sshd.server.forward.TcpForwardingFilter
DEFAULT
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AllowTcpForwardingValue
fromString(String s)
static AllowTcpForwardingValue
valueOf(String name)
Returns the enum constant of this type with the specified name.static AllowTcpForwardingValue[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.apache.sshd.server.forward.TcpForwardingFilter
canConnect, canListen
-
-
-
-
Enum Constant Detail
-
ALL
public static final AllowTcpForwardingValue ALL
-
NONE
public static final AllowTcpForwardingValue NONE
-
LOCAL
public static final AllowTcpForwardingValue LOCAL
-
REMOTE
public static final AllowTcpForwardingValue REMOTE
-
-
Field Detail
-
VALUES
public static final Set<AllowTcpForwardingValue> VALUES
-
-
Method Detail
-
values
public static AllowTcpForwardingValue[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AllowTcpForwardingValue c : AllowTcpForwardingValue.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AllowTcpForwardingValue 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 nameNullPointerException
- if the argument is null
-
fromString
public static AllowTcpForwardingValue fromString(String s)
-
-