public static enum ContentSecurityPolicy.Mode extends Enum<ContentSecurityPolicy.Mode>
| Enum Constant and Description |
|---|
OFF |
ON |
REPORT_ONLY |
| Modifier and Type | Method and Description |
|---|---|
String |
getValue() |
static ContentSecurityPolicy.Mode |
parse(String string) |
static ContentSecurityPolicy.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentSecurityPolicy.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentSecurityPolicy.Mode ON
public static final ContentSecurityPolicy.Mode OFF
public static final ContentSecurityPolicy.Mode REPORT_ONLY
public static ContentSecurityPolicy.Mode[] values()
for (ContentSecurityPolicy.Mode c : ContentSecurityPolicy.Mode.values()) System.out.println(c);
public static ContentSecurityPolicy.Mode 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 getValue()
public static ContentSecurityPolicy.Mode parse(String string)
Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.