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