Enum Class ConnectionType

java.lang.Object
java.lang.Enum<ConnectionType>
org.serviceconnector.net.ConnectionType
All Implemented Interfaces:
Serializable, Comparable<ConnectionType>, Constable, IReversibleEnum<String,ConnectionType>

public enum ConnectionType extends Enum<ConnectionType> implements IReversibleEnum<String,ConnectionType>
The Enum ConnectionType.
  • Enum Constant Details

    • NETTY_TCP

      public static final ConnectionType NETTY_TCP
      The NETTY_TCP.
    • NETTY_HTTP

      public static final ConnectionType NETTY_HTTP
      The NETTY_HTTP.
    • NETTY_WEB

      public static final ConnectionType NETTY_WEB
      The NETTY_WEB.
    • NETTY_PROXY_HTTP

      public static final ConnectionType NETTY_PROXY_HTTP
      The NETTY_PROXY_HTTP.
    • DEFAULT_CLIENT_CONNECTION_TYPE

      public static final ConnectionType DEFAULT_CLIENT_CONNECTION_TYPE
      The DEFAULT_CLIENT_CONNECTION_TYPE.
    • DEFAULT_SERVER_CONNECTION_TYPE

      public static final ConnectionType DEFAULT_SERVER_CONNECTION_TYPE
      The DEFAULT_SERVER_CONNECTION_TYPE.
    • UNDEFINED

      public static final ConnectionType UNDEFINED
      The UNDEFINED.
  • Method Details

    • values

      public static ConnectionType[] 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 ConnectionType 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
    • getType

      public static ConnectionType getType(String typeString)
      Gets the type.
      Parameters:
      typeString - the type string
      Returns:
      the type
    • getValue

      public String getValue()
      Return the value/code of the enum constant.
      Specified by:
      getValue in interface IReversibleEnum<String,ConnectionType>
      Returns:
      value
    • reverse

      public ConnectionType reverse(String typeString)
      Get the Enum constant by looking up the code in the reverse enum map. *
      Specified by:
      reverse in interface IReversibleEnum<String,ConnectionType>
      Parameters:
      typeString - the code
      Returns:
      V - The enum constant