Package com.helger.servlet.response
Enum EResponseStreamType
- java.lang.Object
-
- java.lang.Enum<EResponseStreamType>
-
- com.helger.servlet.response.EResponseStreamType
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,Serializable,Comparable<EResponseStreamType>
public enum EResponseStreamType extends Enum<EResponseStreamType> implements com.helger.commons.id.IHasID<String>
Determine the response stream type to be used.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EResponseStreamTypegetFromIDOrNull(String sID)StringgetID()booleanisCompressed()booleanisUncompressed()static EResponseStreamTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EResponseStreamType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLAIN
public static final EResponseStreamType PLAIN
-
GZIP
public static final EResponseStreamType GZIP
-
DEFLATE
public static final EResponseStreamType DEFLATE
-
-
Method Detail
-
values
public static EResponseStreamType[] 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 (EResponseStreamType c : EResponseStreamType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EResponseStreamType 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>
-
isUncompressed
public boolean isUncompressed()
- Returns:
trueif the response stream type is uncompressed.
-
isCompressed
public boolean isCompressed()
- Returns:
trueif the response stream type is compressed.
-
getFromIDOrNull
@Nullable public static EResponseStreamType getFromIDOrNull(@Nullable String sID)
-
-