Enum Class ResourceType

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

@Generated("Generated by the protocol buffer compiler") public enum ResourceType extends Enum<ResourceType> implements com.google.protobuf.ProtocolMessageEnum
Resource types.

  • Enum Constant Details

    • RESOURCE_TYPE_UNSPECIFIED

      public static final ResourceType RESOURCE_TYPE_UNSPECIFIED
      Reserved value.

    • 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.

    • UNRECOGNIZED

      public static final ResourceType UNRECOGNIZED
  • Field Details

    • RESOURCE_TYPE_UNSPECIFIED_VALUE

      public static final int RESOURCE_TYPE_UNSPECIFIED_VALUE
      Reserved value.

      See Also:
    • MAIN_FRAME_VALUE

      public static final int MAIN_FRAME_VALUE
      Represents a top level page.

      See Also:
    • SUB_FRAME_VALUE

      public static final int SUB_FRAME_VALUE
      Represents a frame or iframe.

      See Also:
    • STYLESHEET_VALUE

      public static final int STYLESHEET_VALUE
      Represents a CSS stylesheet.

      See Also:
    • SCRIPT_VALUE

      public static final int SCRIPT_VALUE
      Represents an external script.

      See Also:
    • IMAGE_VALUE

      public static final int IMAGE_VALUE
      Represents an image (jpg/gif/png/etc).

      See Also:
    • FONT_RESOURCE_VALUE

      public static final int FONT_RESOURCE_VALUE
      Represents a font.

      See Also:
    • SUB_RESOURCE_VALUE

      public static final int SUB_RESOURCE_VALUE
      See Also:
    • OBJECT_VALUE

      public static final int OBJECT_VALUE
      Represents a tag for a plugin.

      See Also:
    • MEDIA_VALUE

      public static final int MEDIA_VALUE
      Represents a media resource.

      See Also:
    • WORKER_VALUE

      public static final int WORKER_VALUE
      Represents the main resource of a dedicated worker.

      See Also:
    • SHARED_WORKER_VALUE

      public static final int SHARED_WORKER_VALUE
      Represents the main resource of a shared worker.

      See Also:
    • PREFETCH_VALUE

      public static final int PREFETCH_VALUE
      Represents an explicitly requested prefetch.

      See Also:
    • FAVICON_VALUE

      public static final int FAVICON_VALUE
      Represents a favicon.

      See Also:
    • XHR_VALUE

      public static final int XHR_VALUE
      Represents an XMLHttpRequest.

      See Also:
    • PING_VALUE

      public static final int PING_VALUE
      Represents a ping request

      See Also:
    • SERVICE_WORKER_VALUE

      public static final int SERVICE_WORKER_VALUE
      Represents the main resource of a service worker.

      See Also:
    • CSP_REPORT_VALUE

      public static final int CSP_REPORT_VALUE
      Represents a report of Content Security Policy violations.

      See Also:
    • PLUGIN_RESOURCE_VALUE

      public static final int PLUGIN_RESOURCE_VALUE
      Represents a resource that a plugin requested.

      See Also:
  • 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
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static ResourceType valueOf(int value)
      Deprecated.
      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:
      value - 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
    • forNumber

      public static ResourceType forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<ResourceType> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static ResourceType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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:
      desc - 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