public enum ResourceType extends java.lang.Enum<ResourceType>
Enum Constant and Description |
---|
FAVICON
A favicon.
|
FONT_RESOURCE
A font.
|
IMAGE
An image (jpg/gif/png/etc).
|
LAST_TYPE
Place holder so we don't need to change ValidType every time.
|
MAIN_FRAME
Top level page.
|
MEDIA
A media resource.
|
OBJECT
An object (or embed) tag for a plugin, or a resource that a plugin requested.
|
PING
A ping request for
<a ping> .
|
PREFETCH
An explicitly requested prefetch.
|
RESOURCE_TYPE_CSP_REPORT
A report of Content Security Policy violations.
|
RESOURCE_TYPE_PLUGIN_RESOURCE
A resource that a plugin requested.
|
SCRIPT
An external script.
|
SERVICE_WORKER
The main resource of a service worker.
|
SHARED_WORKER
The main resource of a shared worker.
|
STYLESHEET
A CSS stylesheet.
|
SUB_FRAME
Frame or IFRAME.
|
SUB_RESOURCE
An "other" sub-resource.
|
WORKER
The main resource of a dedicated worker.
|
XHR
A XMLHttpRequest.
|
Modifier and Type | Method and Description |
---|---|
static ResourceType |
valueOf(int value) |
static ResourceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
返回具有指定名称的此类型的枚举常量。 |
static ResourceType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
以声明顺序返回包含此枚举类型的常量的数组。 |
public static final ResourceType MAIN_FRAME
public static final ResourceType SUB_FRAME
public static final ResourceType STYLESHEET
public static final ResourceType SCRIPT
public static final ResourceType IMAGE
public static final ResourceType FONT_RESOURCE
public static final ResourceType SUB_RESOURCE
public static final ResourceType OBJECT
public static final ResourceType MEDIA
public static final ResourceType WORKER
public static final ResourceType SHARED_WORKER
public static final ResourceType PREFETCH
public static final ResourceType FAVICON
public static final ResourceType XHR
public static final ResourceType PING
<a ping>
.
public static final ResourceType SERVICE_WORKER
public static final ResourceType RESOURCE_TYPE_CSP_REPORT
public static final ResourceType RESOURCE_TYPE_PLUGIN_RESOURCE
public static final ResourceType LAST_TYPE
public static ResourceType[] values()
for (ResourceType c : ResourceType.values()) System.out.println(c);
public static ResourceType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
-要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
java.lang.NullPointerException
- if the argument is null
public static ResourceType valueOf(int value)