Package com.teamdev.jxbrowser.net
Enum Class ResourceType
- All Implemented Interfaces:
Serializable,Comparable<ResourceType>,Constable
Resource types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents a report of Content Security Policy violations.Represents a favicon.Represents a font.Represents an image (jpg/gif/png/etc).Represents a JSON resource.Represents a top level page.Represents a media resource.Represents a tag for a plugin.Represents a ping request.Represents a resource that a plugin requested.Represents an explicitly requested prefetch.Represents a preloaded main frame.Represents a preloaded sub frame.Represents an external script.Represents the main resource of a service worker.Represents the main resource of a shared worker.Represents a CSS stylesheet.Represents a frame or iframe.Represents the main resource of a dedicated worker.Represents an XMLHttpRequest. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceTypeReturns the enum constant of this class with the specified name.static ResourceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
MAIN_FRAME
Represents a top level page. -
SUB_FRAME
Represents a frame or iframe. -
STYLESHEET
Represents a CSS stylesheet. -
SCRIPT
Represents an external script. -
IMAGE
Represents an image (jpg/gif/png/etc). -
FONT_RESOURCE
Represents a font. -
SUB_RESOURCE
-
OBJECT
Represents a tag for a plugin. -
MEDIA
Represents a media resource. -
WORKER
Represents the main resource of a dedicated worker. -
SHARED_WORKER
Represents the main resource of a shared worker. -
PREFETCH
Represents an explicitly requested prefetch. -
FAVICON
Represents a favicon. -
XHR
Represents an XMLHttpRequest. -
PING
Represents a ping request. -
SERVICE_WORKER
Represents the main resource of a service worker. -
CSP_REPORT
Represents a report of Content Security Policy violations. -
PLUGIN_RESOURCE
Represents a resource that a plugin requested. -
PRELOAD_MAIN_FRAME
Represents a preloaded main frame. -
PRELOAD_SUB_FRAME
Represents a preloaded sub frame. -
JSON
Represents a JSON resource.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-