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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe browser crashed.Reserved value.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. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The browser crashed.static final int
Reserved value.static final int
The file cannot be accessed due to security restrictions.static final int
The file was blocked due to local policy.static final int
Generic file operation failure.static final int
The partial file didn't match the expected hash.static final int
The directory or file name is too long.static final int
There is not enough room on the drive.static final int
The source and the target of the download were the same.static final int
An attempt to check the safety of the download failed due to unexpected reasons.static final int
The file is too large for the file system to handle.static final int
An attempt was made to seek past the end of a file in opening a file (as part of resuming a previously interrupted download).static final int
The file was in use.static final int
The file contains a virus.static final int
The network connection has been lost.static final int
Generic network failure.static final int
The network request was invalid.static final int
The server has gone down.static final int
The network operation timed out.static final int
The server does not have the requested data.static final int
Server certificate problem.static final int
The server sent fewer bytes than the content-length header.static final int
The server indicates that the operation has failed (generic).static final int
Server access forbidden.static final int
The server does not support range requests.static final int
Server didn't authorize access to resource.static final int
Unexpected server response.static final int
The reason is unknown.static final int
The user canceled the download.static final int
The user shut down the browser. -
Method Summary
Modifier and TypeMethodDescriptionstatic DownloadInterruptReason
forNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap<DownloadInterruptReason>
static DownloadInterruptReason
valueOf
(int value) Deprecated.static DownloadInterruptReason
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static DownloadInterruptReason
Returns 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
-
DOWNLOAD_INTERRUPT_REASON_UNSPECIFIED
Reserved value. -
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. -
UNRECOGNIZED
-
-
Field Details
-
DOWNLOAD_INTERRUPT_REASON_UNSPECIFIED_VALUE
public static final int DOWNLOAD_INTERRUPT_REASON_UNSPECIFIED_VALUEReserved value.- See Also:
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEThe reason is unknown.- See Also:
-
FILE_FAILED_VALUE
public static final int FILE_FAILED_VALUEGeneric file operation failure.- See Also:
-
FILE_ACCESS_DENIED_VALUE
public static final int FILE_ACCESS_DENIED_VALUEThe file cannot be accessed due to security restrictions.- See Also:
-
FILE_NO_SPACE_VALUE
public static final int FILE_NO_SPACE_VALUEThere is not enough room on the drive.- See Also:
-
FILE_NAME_TOO_LONG_VALUE
public static final int FILE_NAME_TOO_LONG_VALUEThe directory or file name is too long.- See Also:
-
FILE_TOO_LARGE_VALUE
public static final int FILE_TOO_LARGE_VALUEThe file is too large for the file system to handle.- See Also:
-
FILE_VIRUS_INFECTED_VALUE
public static final int FILE_VIRUS_INFECTED_VALUEThe file contains a virus.- See Also:
-
FILE_TRANSIENT_ERROR_VALUE
public static final int FILE_TRANSIENT_ERROR_VALUEThe 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_VALUEThe file was blocked due to local policy.- See Also:
-
FILE_SECURITY_CHECK_FAILED_VALUE
public static final int FILE_SECURITY_CHECK_FAILED_VALUEAn 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_VALUEAn 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_VALUEThe partial file didn't match the expected hash.- See Also:
-
FILE_SAME_AS_SOURCE_VALUE
public static final int FILE_SAME_AS_SOURCE_VALUEThe source and the target of the download were the same.- See Also:
-
NETWORK_FAILED_VALUE
public static final int NETWORK_FAILED_VALUEGeneric network failure.- See Also:
-
NETWORK_TIMEOUT_VALUE
public static final int NETWORK_TIMEOUT_VALUEThe network operation timed out.- See Also:
-
NETWORK_DISCONNECTED_VALUE
public static final int NETWORK_DISCONNECTED_VALUEThe network connection has been lost.- See Also:
-
NETWORK_SERVER_DOWN_VALUE
public static final int NETWORK_SERVER_DOWN_VALUEThe server has gone down.- See Also:
-
NETWORK_INVALID_REQUEST_VALUE
public static final int NETWORK_INVALID_REQUEST_VALUEThe 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_VALUEThe server indicates that the operation has failed (generic).- See Also:
-
SERVER_NO_RANGE_VALUE
public static final int SERVER_NO_RANGE_VALUEThe server does not support range requests.- See Also:
-
SERVER_BAD_CONTENT_VALUE
public static final int SERVER_BAD_CONTENT_VALUEThe server does not have the requested data.- See Also:
-
SERVER_UNAUTHORIZED_VALUE
public static final int SERVER_UNAUTHORIZED_VALUEServer didn't authorize access to resource.- See Also:
-
SERVER_CERT_PROBLEM_VALUE
public static final int SERVER_CERT_PROBLEM_VALUEServer certificate problem.- See Also:
-
SERVER_FORBIDDEN_VALUE
public static final int SERVER_FORBIDDEN_VALUEServer access forbidden.- See Also:
-
SERVER_UNREACHABLE_VALUE
public static final int SERVER_UNREACHABLE_VALUEUnexpected 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_VALUEThe 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_VALUEThe user canceled the download.- See Also:
-
USER_SHUTDOWN_VALUE
public static final int USER_SHUTDOWN_VALUEThe user shut down the browser.- See Also:
-
CRASH_VALUE
public static final int CRASH_VALUEThe browser crashed.- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException
- if the argument is null
-
forNumber
- 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 interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.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 nameNullPointerException
- if the argument is null
-