public enum ContentDisposition extends java.lang.Enum<ContentDisposition>
Enum Constant and Description |
---|
ATTACHMENT
Indicates that the content should be downloaded and browsers should present a 'Save as' dialog,
prefilled with the value of the filename parameters if present.
|
INLINE
Indicates that the content should be displayed inside the Web page, or as the Web page
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
value
The string value of content-disposition header
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue()
Returns its string value.
|
static ContentDisposition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ContentDisposition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentDisposition INLINE
public static final ContentDisposition ATTACHMENT
private final java.lang.String value
public static ContentDisposition[] values()
for (ContentDisposition c : ContentDisposition.values()) System.out.println(c);
public static ContentDisposition valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getValue()