public enum URIScheme extends Enum<URIScheme>
Modifier and Type | Method and Description |
---|---|
String |
getId() |
boolean |
same(String scheme) |
String |
toString() |
static URIScheme |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static URIScheme[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final URIScheme HTTP
public static final URIScheme HTTPS
public final String id
public static URIScheme[] values()
for (URIScheme c : URIScheme.values()) System.out.println(c);
public static URIScheme 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 getId()
public boolean same(String scheme)
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.