Package com.helger.servlet.response
Enum EContentDispositionType
- java.lang.Object
-
- java.lang.Enum<EContentDispositionType>
-
- com.helger.servlet.response.EContentDispositionType
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,Serializable,Comparable<EContentDispositionType>
public enum EContentDispositionType extends Enum<EContentDispositionType> implements com.helger.commons.id.IHasID<String>
Determine the content disposition type to be used.- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTACHMENTINLINE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EContentDispositionTypegetFromIDOrNull(String sID)StringgetID()static EContentDispositionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EContentDispositionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ATTACHMENT
public static final EContentDispositionType ATTACHMENT
-
INLINE
public static final EContentDispositionType INLINE
-
-
Method Detail
-
values
public static EContentDispositionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EContentDispositionType c : EContentDispositionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EContentDispositionType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getID
@Nonnull @Nonempty public String getID()
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
getFromIDOrNull
@Nullable public static EContentDispositionType getFromIDOrNull(@Nullable String sID)
-
-