Enum Class ResourceType

java.lang.Object
java.lang.Enum<ResourceType>
com.teamdev.jxbrowser.net.ResourceType
All Implemented Interfaces:
Serializable, Comparable<ResourceType>, Constable

public enum ResourceType extends Enum<ResourceType>
Resource types.
  • Enum Constant Details

    • MAIN_FRAME

      public static final ResourceType MAIN_FRAME
      Represents a top level page.
    • SUB_FRAME

      public static final ResourceType SUB_FRAME
      Represents a frame or iframe.
    • STYLESHEET

      public static final ResourceType STYLESHEET
      Represents a CSS stylesheet.
    • SCRIPT

      public static final ResourceType SCRIPT
      Represents an external script.
    • IMAGE

      public static final ResourceType IMAGE
      Represents an image (jpg/gif/png/etc).
    • FONT_RESOURCE

      public static final ResourceType FONT_RESOURCE
      Represents a font.
    • SUB_RESOURCE

      public static final ResourceType SUB_RESOURCE
    • OBJECT

      public static final ResourceType OBJECT
      Represents a tag for a plugin.
    • MEDIA

      public static final ResourceType MEDIA
      Represents a media resource.
    • WORKER

      public static final ResourceType WORKER
      Represents the main resource of a dedicated worker.
    • SHARED_WORKER

      public static final ResourceType SHARED_WORKER
      Represents the main resource of a shared worker.
    • PREFETCH

      public static final ResourceType PREFETCH
      Represents an explicitly requested prefetch.
    • FAVICON

      public static final ResourceType FAVICON
      Represents a favicon.
    • XHR

      public static final ResourceType XHR
      Represents an XMLHttpRequest.
    • PING

      public static final ResourceType PING
      Represents a ping request.
    • SERVICE_WORKER

      public static final ResourceType SERVICE_WORKER
      Represents the main resource of a service worker.
    • CSP_REPORT

      public static final ResourceType CSP_REPORT
      Represents a report of Content Security Policy violations.
    • PLUGIN_RESOURCE

      public static final ResourceType PLUGIN_RESOURCE
      Represents a resource that a plugin requested.
    • PRELOAD_MAIN_FRAME

      public static final ResourceType PRELOAD_MAIN_FRAME
      Represents a preloaded main frame.
    • PRELOAD_SUB_FRAME

      public static final ResourceType PRELOAD_SUB_FRAME
      Represents a preloaded sub frame.
    • JSON

      public static final ResourceType JSON
      Represents a JSON resource.
  • Method Details

    • values

      public static ResourceType[] 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

      public static ResourceType valueOf(String name)
      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 name
      NullPointerException - if the argument is null