public static enum MediaComponent.Cors extends Enum<MediaComponent.Cors>
#setCrossOrigin(Cors)}
Enum Constant and Description |
---|
ANONYMOUS
no authentication required
|
NO_CORS
no cross origin
|
USER_CREDENTIALS
user credentials required
|
Modifier and Type | Method and Description |
---|---|
String |
getRealName()
Gets the real name for the cors option
|
static MediaComponent.Cors |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaComponent.Cors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaComponent.Cors ANONYMOUS
public static final MediaComponent.Cors USER_CREDENTIALS
public static final MediaComponent.Cors NO_CORS
public static MediaComponent.Cors[] values()
for (MediaComponent.Cors c : MediaComponent.Cors.values()) System.out.println(c);
public static MediaComponent.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 © 2006–2022 Apache Software Foundation. All rights reserved.