Package org.htmlunit.csp
Enum FetchDirectiveKind
- All Implemented Interfaces:
Serializable,Comparable<FetchDirectiveKind>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionChildSrc("child-src").ConnectSrc("connect-src").DefaultSrc("default-src").FontSrc("font-src").FrameSrc("frame-src").ImgSrc("img-src").ManifestSrc("manifest-src").MediaSrc("media-src").ObjectSrc("object-src").PrefetchSrc("prefetch-src").ScriptSrc("script-src").ScriptSrcAttr("script-src-attr").ScriptSrcElem("script-src-elem").StyleSrc("style-src").StyleSrcAttr("style-src-attr").StyleSrcElem("style-src-elem").WorkerSrc("worker-src"). -
Method Summary
Modifier and TypeMethodDescriptionstatic FetchDirectiveKindfromString(String name) getRepr()static FetchDirectiveKindReturns the enum constant of this type with the specified name.static FetchDirectiveKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ChildSrc
ChildSrc("child-src"). -
ConnectSrc
ConnectSrc("connect-src"). -
DefaultSrc
DefaultSrc("default-src"). -
FontSrc
FontSrc("font-src"). -
FrameSrc
FrameSrc("frame-src"). -
ImgSrc
ImgSrc("img-src"). -
ManifestSrc
ManifestSrc("manifest-src"). -
MediaSrc
MediaSrc("media-src"). -
ObjectSrc
ObjectSrc("object-src"). -
PrefetchSrc
PrefetchSrc("prefetch-src"). -
ScriptSrcAttr
ScriptSrcAttr("script-src-attr"). -
ScriptSrc
ScriptSrc("script-src"). -
ScriptSrcElem
ScriptSrcElem("script-src-elem"). -
StyleSrcAttr
StyleSrcAttr("style-src-attr"). -
StyleSrc
StyleSrc("style-src"). -
StyleSrcElem
StyleSrcElem("style-src-elem"). -
WorkerSrc
WorkerSrc("worker-src").
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getRepr
-
fromString
-