Enum Class DownloadInterruptReason

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

@Generated("Generated by the protocol buffer compiler") public enum DownloadInterruptReason extends Enum<DownloadInterruptReason> implements com.google.protobuf.ProtocolMessageEnum
The download interrupt reasons.

  • Enum Constant Details

    • DOWNLOAD_INTERRUPT_REASON_UNSPECIFIED

      public static final DownloadInterruptReason DOWNLOAD_INTERRUPT_REASON_UNSPECIFIED
      Reserved value.

    • UNKNOWN

      public static final DownloadInterruptReason UNKNOWN
      The reason is unknown.

    • FILE_FAILED

      public static final DownloadInterruptReason FILE_FAILED
      Generic file operation failure.

    • FILE_ACCESS_DENIED

      public static final DownloadInterruptReason FILE_ACCESS_DENIED
      The file cannot be accessed due to security restrictions.

    • FILE_NO_SPACE

      public static final DownloadInterruptReason FILE_NO_SPACE
      There is not enough room on the drive.

    • FILE_NAME_TOO_LONG

      public static final DownloadInterruptReason FILE_NAME_TOO_LONG
      The directory or file name is too long.

    • FILE_TOO_LARGE

      public static final DownloadInterruptReason FILE_TOO_LARGE
      The file is too large for the file system to handle.

    • FILE_VIRUS_INFECTED

      public static final DownloadInterruptReason FILE_VIRUS_INFECTED
      The file contains a virus.

    • FILE_TRANSIENT_ERROR

      public static final DownloadInterruptReason FILE_TRANSIENT_ERROR
      The file was in use. Too many files are opened at once. We have run out of memory.

    • FILE_BLOCKED

      public static final DownloadInterruptReason FILE_BLOCKED
      The file was blocked due to local policy.

    • FILE_SECURITY_CHECK_FAILED

      public static final DownloadInterruptReason FILE_SECURITY_CHECK_FAILED
      An attempt to check the safety of the download failed due to unexpected reasons.

    • FILE_TOO_SHORT

      public static final DownloadInterruptReason FILE_TOO_SHORT
      An attempt was made to seek past the end of a file in opening a file (as part of resuming a previously interrupted download).

    • FILE_HASH_MISMATCH

      public static final DownloadInterruptReason FILE_HASH_MISMATCH
      The partial file didn't match the expected hash.

    • FILE_SAME_AS_SOURCE

      public static final DownloadInterruptReason FILE_SAME_AS_SOURCE
      The source and the target of the download were the same.

    • NETWORK_FAILED

      public static final DownloadInterruptReason NETWORK_FAILED
      Generic network failure.

    • NETWORK_TIMEOUT

      public static final DownloadInterruptReason NETWORK_TIMEOUT
      The network operation timed out.

    • NETWORK_DISCONNECTED

      public static final DownloadInterruptReason NETWORK_DISCONNECTED
      The network connection has been lost.

    • NETWORK_SERVER_DOWN

      public static final DownloadInterruptReason NETWORK_SERVER_DOWN
      The server has gone down.

    • NETWORK_INVALID_REQUEST

      public static final DownloadInterruptReason NETWORK_INVALID_REQUEST
      The network request was invalid. This may be due to the original URL or a redirected URL:
      • Having an unsupported scheme.
      • Being an invalid URL.
      • Being disallowed by policy.

    • SERVER_FAILED

      public static final DownloadInterruptReason SERVER_FAILED
      The server indicates that the operation has failed (generic).

    • SERVER_NO_RANGE

      public static final DownloadInterruptReason SERVER_NO_RANGE
      The server does not support range requests.

    • SERVER_BAD_CONTENT

      public static final DownloadInterruptReason SERVER_BAD_CONTENT
      The server does not have the requested data.

    • SERVER_UNAUTHORIZED

      public static final DownloadInterruptReason SERVER_UNAUTHORIZED
      Server didn't authorize access to resource.

    • SERVER_CERT_PROBLEM

      public static final DownloadInterruptReason SERVER_CERT_PROBLEM
      Server certificate problem.

    • SERVER_FORBIDDEN

      public static final DownloadInterruptReason SERVER_FORBIDDEN
      Server access forbidden.

    • SERVER_UNREACHABLE

      public static final DownloadInterruptReason SERVER_UNREACHABLE
      Unexpected server response. This might indicate that the responding server may not be the intended server.

    • SERVER_CONTENT_LENGTH_MISMATCH

      public static final DownloadInterruptReason SERVER_CONTENT_LENGTH_MISMATCH
      The server sent fewer bytes than the content-length header. It may indicate that the connection was closed prematurely, or the Content-Length header was invalid. The download is only interrupted if strong validators are present. Otherwise, it is treated as finished.

    • USER_CANCELED

      public static final DownloadInterruptReason USER_CANCELED
      The user canceled the download.

    • USER_SHUTDOWN

      public static final DownloadInterruptReason USER_SHUTDOWN
      The user shut down the browser.

    • CRASH

      public static final DownloadInterruptReason CRASH
      The browser crashed.

    • UNRECOGNIZED

      public static final DownloadInterruptReason UNRECOGNIZED
  • Field Details

    • DOWNLOAD_INTERRUPT_REASON_UNSPECIFIED_VALUE

      public static final int DOWNLOAD_INTERRUPT_REASON_UNSPECIFIED_VALUE
      Reserved value.

      See Also:
    • UNKNOWN_VALUE

      public static final int UNKNOWN_VALUE
      The reason is unknown.

      See Also:
    • FILE_FAILED_VALUE

      public static final int FILE_FAILED_VALUE
      Generic file operation failure.

      See Also:
    • FILE_ACCESS_DENIED_VALUE

      public static final int FILE_ACCESS_DENIED_VALUE
      The file cannot be accessed due to security restrictions.

      See Also:
    • FILE_NO_SPACE_VALUE

      public static final int FILE_NO_SPACE_VALUE
      There is not enough room on the drive.

      See Also:
    • FILE_NAME_TOO_LONG_VALUE

      public static final int FILE_NAME_TOO_LONG_VALUE
      The directory or file name is too long.

      See Also:
    • FILE_TOO_LARGE_VALUE

      public static final int FILE_TOO_LARGE_VALUE
      The file is too large for the file system to handle.

      See Also:
    • FILE_VIRUS_INFECTED_VALUE

      public static final int FILE_VIRUS_INFECTED_VALUE
      The file contains a virus.

      See Also:
    • FILE_TRANSIENT_ERROR_VALUE

      public static final int FILE_TRANSIENT_ERROR_VALUE
      The file was in use. Too many files are opened at once. We have run out of memory.

      See Also:
    • FILE_BLOCKED_VALUE

      public static final int FILE_BLOCKED_VALUE
      The file was blocked due to local policy.

      See Also:
    • FILE_SECURITY_CHECK_FAILED_VALUE

      public static final int FILE_SECURITY_CHECK_FAILED_VALUE
      An attempt to check the safety of the download failed due to unexpected reasons.

      See Also:
    • FILE_TOO_SHORT_VALUE

      public static final int FILE_TOO_SHORT_VALUE
      An attempt was made to seek past the end of a file in opening a file (as part of resuming a previously interrupted download).

      See Also:
    • FILE_HASH_MISMATCH_VALUE

      public static final int FILE_HASH_MISMATCH_VALUE
      The partial file didn't match the expected hash.

      See Also:
    • FILE_SAME_AS_SOURCE_VALUE

      public static final int FILE_SAME_AS_SOURCE_VALUE
      The source and the target of the download were the same.

      See Also:
    • NETWORK_FAILED_VALUE

      public static final int NETWORK_FAILED_VALUE
      Generic network failure.

      See Also:
    • NETWORK_TIMEOUT_VALUE

      public static final int NETWORK_TIMEOUT_VALUE
      The network operation timed out.

      See Also:
    • NETWORK_DISCONNECTED_VALUE

      public static final int NETWORK_DISCONNECTED_VALUE
      The network connection has been lost.

      See Also:
    • NETWORK_SERVER_DOWN_VALUE

      public static final int NETWORK_SERVER_DOWN_VALUE
      The server has gone down.

      See Also:
    • NETWORK_INVALID_REQUEST_VALUE

      public static final int NETWORK_INVALID_REQUEST_VALUE
      The network request was invalid. This may be due to the original URL or a redirected URL:
      • Having an unsupported scheme.
      • Being an invalid URL.
      • Being disallowed by policy.

      See Also:
    • SERVER_FAILED_VALUE

      public static final int SERVER_FAILED_VALUE
      The server indicates that the operation has failed (generic).

      See Also:
    • SERVER_NO_RANGE_VALUE

      public static final int SERVER_NO_RANGE_VALUE
      The server does not support range requests.

      See Also:
    • SERVER_BAD_CONTENT_VALUE

      public static final int SERVER_BAD_CONTENT_VALUE
      The server does not have the requested data.

      See Also:
    • SERVER_UNAUTHORIZED_VALUE

      public static final int SERVER_UNAUTHORIZED_VALUE
      Server didn't authorize access to resource.

      See Also:
    • SERVER_CERT_PROBLEM_VALUE

      public static final int SERVER_CERT_PROBLEM_VALUE
      Server certificate problem.

      See Also:
    • SERVER_FORBIDDEN_VALUE

      public static final int SERVER_FORBIDDEN_VALUE
      Server access forbidden.

      See Also:
    • SERVER_UNREACHABLE_VALUE

      public static final int SERVER_UNREACHABLE_VALUE
      Unexpected server response. This might indicate that the responding server may not be the intended server.

      See Also:
    • SERVER_CONTENT_LENGTH_MISMATCH_VALUE

      public static final int SERVER_CONTENT_LENGTH_MISMATCH_VALUE
      The server sent fewer bytes than the content-length header. It may indicate that the connection was closed prematurely, or the Content-Length header was invalid. The download is only interrupted if strong validators are present. Otherwise, it is treated as finished.

      See Also:
    • USER_CANCELED_VALUE

      public static final int USER_CANCELED_VALUE
      The user canceled the download.

      See Also:
    • USER_SHUTDOWN_VALUE

      public static final int USER_SHUTDOWN_VALUE
      The user shut down the browser.

      See Also:
    • CRASH_VALUE

      public static final int CRASH_VALUE
      The browser crashed.

      See Also:
  • Method Details

    • values

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