public static enum OfflineCacheEntry.Cors extends Enum<OfflineCacheEntry.Cors>
| Enum Constant and Description |
|---|
CORS
request the server with cors option
|
NO_CORS
no cross orign
|
SAME_ORIGIN
from same origin
|
| Modifier and Type | Method and Description |
|---|---|
String |
getRealName()
Gets the real name for the cors option
|
static OfflineCacheEntry.Cors |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OfflineCacheEntry.Cors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OfflineCacheEntry.Cors CORS
public static final OfflineCacheEntry.Cors NO_CORS
public static final OfflineCacheEntry.Cors SAME_ORIGIN
public static OfflineCacheEntry.Cors[] values()
for (OfflineCacheEntry.Cors c : OfflineCacheEntry.Cors.values()) System.out.println(c);
public static OfflineCacheEntry.Cors 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 getRealName()
Copyright © 2020. All rights reserved.