Package org.serviceconnector.net
Enum Class ConnectionType
- All Implemented Interfaces:
Serializable,Comparable<ConnectionType>,Constable,IReversibleEnum<String,ConnectionType>
public enum ConnectionType
extends Enum<ConnectionType>
implements IReversibleEnum<String,ConnectionType>
The Enum ConnectionType.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe DEFAULT_CLIENT_CONNECTION_TYPE.The DEFAULT_SERVER_CONNECTION_TYPE.The NETTY_HTTP.The NETTY_PROXY_HTTP.The NETTY_TCP.The NETTY_WEB.The UNDEFINED. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionTypeGets the type.getValue()Return the value/code of the enum constant.Get theEnumconstant by looking up the code in the reverse enum mapstatic ConnectionTypeReturns the enum constant of this class with the specified name.static ConnectionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NETTY_TCP
The NETTY_TCP. -
NETTY_HTTP
The NETTY_HTTP. -
NETTY_WEB
The NETTY_WEB. -
NETTY_PROXY_HTTP
The NETTY_PROXY_HTTP. -
DEFAULT_CLIENT_CONNECTION_TYPE
The DEFAULT_CLIENT_CONNECTION_TYPE. -
DEFAULT_SERVER_CONNECTION_TYPE
The DEFAULT_SERVER_CONNECTION_TYPE. -
UNDEFINED
The UNDEFINED.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getType
Gets the type.- Parameters:
typeString- the type string- Returns:
- the type
-
getValue
Return the value/code of the enum constant.- Specified by:
getValuein interfaceIReversibleEnum<String,ConnectionType> - Returns:
- value
-
reverse
Get theEnumconstant by looking up the code in the reverse enum map. *- Specified by:
reversein interfaceIReversibleEnum<String,ConnectionType> - Parameters:
typeString- the code- Returns:
- V - The enum constant
-