public static enum SpdyOrHttpChooser.SelectedProtocol extends java.lang.Enum<SpdyOrHttpChooser.SelectedProtocol>
Modifier and Type | Method and Description |
---|---|
static SpdyOrHttpChooser.SelectedProtocol |
protocol(java.lang.String name)
Get an instance of this enum based on the protocol name returned by the NPN server provider
|
java.lang.String |
protocolName() |
static SpdyOrHttpChooser.SelectedProtocol |
valueOf(java.lang.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 SpdyOrHttpChooser.SelectedProtocol[] values()
for (SpdyOrHttpChooser.SelectedProtocol c : SpdyOrHttpChooser.SelectedProtocol.values()) System.out.println(c);
public static SpdyOrHttpChooser.SelectedProtocol valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String protocolName()
public static SpdyOrHttpChooser.SelectedProtocol protocol(java.lang.String name)
name
- the protocol namenull
if there is no matchCopyright © 2008–2018 The Netty Project. All rights reserved.