public enum DownloadPolicy extends Enum<DownloadPolicy>
| Enum Constant and Description |
|---|
Insecure
Allow all raw to be viewed in the browser directly.
|
Secure
All files are forced to download.
|
Smart
Forces non-secure file types (i.e., executable file types) to be downloaded instead of viewable in brwoser.
|
| Modifier and Type | Method and Description |
|---|---|
static DownloadPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DownloadPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DownloadPolicy Insecure
public static final DownloadPolicy Smart
HostileExtensionDetector.public static final DownloadPolicy Secure
public static DownloadPolicy[] values()
for (DownloadPolicy c : DownloadPolicy.values()) System.out.println(c);
public static DownloadPolicy 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 © 2018 Atlassian. All rights reserved.