public static enum Http2OrHttpChooser.SelectedProtocol extends Enum<Http2OrHttpChooser.SelectedProtocol>
| Enum Constant and Description | 
|---|
| HTTP_1_0 | 
| HTTP_1_1 | 
| HTTP_2Must be updated to match the HTTP/2 draft number. | 
| UNKNOWN | 
| Modifier and Type | Method and Description | 
|---|---|
| static Http2OrHttpChooser.SelectedProtocol | protocol(String name)Get an instance of this enum based on the protocol name returned by the NPN server provider | 
| String | protocolName() | 
| static Http2OrHttpChooser.SelectedProtocol | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static Http2OrHttpChooser.SelectedProtocol[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final Http2OrHttpChooser.SelectedProtocol HTTP_2
public static final Http2OrHttpChooser.SelectedProtocol HTTP_1_1
public static final Http2OrHttpChooser.SelectedProtocol HTTP_1_0
public static final Http2OrHttpChooser.SelectedProtocol UNKNOWN
public static Http2OrHttpChooser.SelectedProtocol[] values()
for (Http2OrHttpChooser.SelectedProtocol c : Http2OrHttpChooser.SelectedProtocol.values()) System.out.println(c);
public static Http2OrHttpChooser.SelectedProtocol 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 protocolName()
public static Http2OrHttpChooser.SelectedProtocol protocol(String name)
name - the protocol nameCopyright © 2008–2015 The Netty Project. All rights reserved.