public static enum FileTransfer.FailureReason extends Enum<FileTransfer.FailureReason>
| Enum Constant and Description |
|---|
FILE_NOT_PRESENT_ON_SERVER
This reason is only applicable for Inbound file transfers.
|
NEGOTIATION_FAILED
Negotiation failure may occur with server for various reasons
|
NO_NETWORK_CONNECTIVITY
Failure reasoon if device does not have network connectivity at the
time of initiating the file transfer
|
STREAM_NOT_READY
If XMPP stream is not ready.
|
TRANSFER_INTERRUPTED
If the transfer started but interrupted due to some reason (may be
network lost)
|
UNKNOWN
Any other reason not listed above
|
| Modifier and Type | Method and Description |
|---|---|
static FileTransfer.FailureReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileTransfer.FailureReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileTransfer.FailureReason NO_NETWORK_CONNECTIVITY
public static final FileTransfer.FailureReason NEGOTIATION_FAILED
public static final FileTransfer.FailureReason FILE_NOT_PRESENT_ON_SERVER
public static final FileTransfer.FailureReason TRANSFER_INTERRUPTED
public static final FileTransfer.FailureReason STREAM_NOT_READY
public static final FileTransfer.FailureReason UNKNOWN
public static FileTransfer.FailureReason[] values()
for (FileTransfer.FailureReason c : FileTransfer.FailureReason.values()) System.out.println(c);
public static FileTransfer.FailureReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2019. All rights reserved.