Enum HttpProtocol

java.lang.Object
java.lang.Enum<HttpProtocol>
io.vertx.core.http.HttpProtocol
All Implemented Interfaces:
Serializable, Comparable<HttpProtocol>

public enum HttpProtocol extends Enum<HttpProtocol>
Subset of ALPN protocol ID for HTTP applications.
Author:
Julien Viet
  • Enum Constant Details

  • Method Details

    • values

      public static HttpProtocol[] 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 HttpProtocol 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
    • id

      public String id()
      Returns:
      the id of the protocol
    • version

      public HttpVersion version()
      Returns:
      the version of the protocol
    • fromId

      public static HttpProtocol fromId(String id)
      Provides the version of the given protocol id
      Parameters:
      id - the protocol id
      Returns:
      the protocol of null when no id is matching