Enum Class DownloadInterruptReason

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

public enum DownloadInterruptReason extends Enum<DownloadInterruptReason>
The download interrupt reasons.
  • Enum Constant Details

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