public enum HttpScheme extends Enum<HttpScheme>
Modifier and Type | Field and Description |
---|---|
static Trie<HttpScheme> |
CACHE |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
asByteBuffer() |
String |
asString() |
boolean |
is(String s) |
String |
toString() |
static HttpScheme |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpScheme[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- 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 ByteBuffer asByteBuffer()
public boolean is(String s)
public String asString()
public String toString()
toString
in class Enum<HttpScheme>
Copyright © 1995-2015 Webtide. All Rights Reserved.