public enum ContentDisposition extends Enum<ContentDisposition>
| Enum Constant and Description |
|---|
ATTACHMENT |
INLINE |
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
This implementation returns the header
value of this content disposition.
|
static ContentDisposition |
valueOf(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.
|
String |
withFile(File file)
Returns a string suitable for use as the value of a 'Content-Disposition' HTTP header, including
the specification of a file name.
|
public static final ContentDisposition INLINE
public static final ContentDisposition ATTACHMENT
public static ContentDisposition[] values()
for (ContentDisposition c : ContentDisposition.values()) System.out.println(c);
public static ContentDisposition 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 nullpublic String toString()
toString in class Enum<ContentDisposition>public String withFile(File file)
file - the file whose name is to be included in the resultCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.