Enum Class DownloadInterruptReason
java.lang.Object
java.lang.Enum<DownloadInterruptReason>
com.teamdev.jxbrowser.download.event.DownloadInterruptReason
- All Implemented Interfaces:
Serializable,Comparable<DownloadInterruptReason>,Constable
The download interrupt reasons.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe browser crashed.The file cannot be accessed due to security restrictions.The file was blocked due to local policy.Generic file operation failure.The partial file didn't match the expected hash.The directory or file name is too long.There is not enough room on the drive.The source and the target of the download were the same.An attempt to check the safety of the download failed due to unexpected reasons.The file is too large for the file system to handle.An attempt was made to seek past the end of a file in opening a file (as part of resuming a previously interrupted download).The file was in use.The file contains a virus.The network connection has been lost.Generic network failure.The network request was invalid.The server has gone down.The network operation timed out.The server does not have the requested data.Server certificate problem.The server sent fewer bytes than the content-length header.The server indicates that the operation has failed (generic).Server access forbidden.The server does not support range requests.Server didn't authorize access to resource.Unexpected server response.The reason is unknown.The user canceled the download.The user shut down the browser. -
Method Summary
Modifier and TypeMethodDescriptionstatic DownloadInterruptReasonReturns the enum constant of this class with the specified name.static DownloadInterruptReason[]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
-
UNKNOWN
The reason is unknown. -
FILE_FAILED
Generic file operation failure. -
FILE_ACCESS_DENIED
The file cannot be accessed due to security restrictions. -
FILE_NO_SPACE
There is not enough room on the drive. -
FILE_NAME_TOO_LONG
The directory or file name is too long. -
FILE_TOO_LARGE
The file is too large for the file system to handle. -
FILE_VIRUS_INFECTED
The file contains a virus. -
FILE_TRANSIENT_ERROR
The file was in use. Too many files are opened at once. We have run out of memory. -
FILE_BLOCKED
The file was blocked due to local policy. -
FILE_SECURITY_CHECK_FAILED
An attempt to check the safety of the download failed due to unexpected reasons. -
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
The partial file didn't match the expected hash. -
FILE_SAME_AS_SOURCE
The source and the target of the download were the same. -
NETWORK_FAILED
Generic network failure. -
NETWORK_TIMEOUT
The network operation timed out. -
NETWORK_DISCONNECTED
The network connection has been lost. -
NETWORK_SERVER_DOWN
The server has gone down. -
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
The server indicates that the operation has failed (generic). -
SERVER_NO_RANGE
The server does not support range requests. -
SERVER_BAD_CONTENT
The server does not have the requested data. -
SERVER_UNAUTHORIZED
Server didn't authorize access to resource. -
SERVER_CERT_PROBLEM
Server certificate problem. -
SERVER_FORBIDDEN
Server access forbidden. -
SERVER_UNREACHABLE
Unexpected server response. This might indicate that the responding server may not be the intended server. -
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
The user canceled the download. -
USER_SHUTDOWN
The user shut down the browser. -
CRASH
The browser crashed.
-
-
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
-