public enum HttpScheme extends Enum<HttpScheme>
| 限定符和类型 | 字段和说明 |
|---|---|
static Trie<HttpScheme> |
CACHE |
| 限定符和类型 | 方法和说明 |
|---|---|
ByteBuffer |
asByteBuffer() |
String |
asString() |
boolean |
is(String s) |
String |
toString() |
static HttpScheme |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static HttpScheme[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final HttpScheme HTTP
public static final HttpScheme HTTPS
public static final HttpScheme WS
public static final HttpScheme WSS
public static final Trie<HttpScheme> CACHE
public static HttpScheme[] values()
for (HttpScheme c : HttpScheme.values()) System.out.println(c);
public static HttpScheme valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public ByteBuffer asByteBuffer()
public boolean is(String s)
public String asString()
public String toString()
toString 在类中 Enum<HttpScheme>Copyright © 2016. All rights reserved.