public enum ApplicationProtocol extends Enum<ApplicationProtocol>
| Enum Constant and Description | 
|---|
| HTTP_1_1The HTTP/1.1 application protocol. | 
| HTTP_2The HTTP/2 application protocol. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | toString() | 
| static ApplicationProtocol | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static ApplicationProtocol[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final ApplicationProtocol HTTP_2
public static final ApplicationProtocol HTTP_1_1
public final String id
public static ApplicationProtocol[] values()
for (ApplicationProtocol c : ApplicationProtocol.values()) System.out.println(c);
public static ApplicationProtocol valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<ApplicationProtocol>Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.