Enum StreamableResourceProcessing
java.lang.Object
java.lang.Enum<StreamableResourceProcessing>
org.apache.tapestry5.services.assets.StreamableResourceProcessing
- All Implemented Interfaces:
Serializable
,Comparable<StreamableResourceProcessing>
,java.lang.constant.Constable
Defines additional features desired when accessing the content of a
Resource
as
a StreamableResource
.- Since:
- 5.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAs withCOMPRESSION_ENABLED
, but the final compression stage (and compression cache) is skipped.The default behavior when the client supports compression, and an individual (non-aggregated) resources is being accessed.Turns off all caching and minification of the resource, which is appropriate when the individual resource will be aggregated with other resources to form a virtual composite. -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamableResourceProcessing
Returns the enum constant of this type with the specified name.static StreamableResourceProcessing[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COMPRESSION_ENABLED
The default behavior when the client supports compression, and an individual (non-aggregated) resources is being accessed. The resource may be minimized and both the compressed and uncompressed versions may be cached. -
COMPRESSION_DISABLED
As withCOMPRESSION_ENABLED
, but the final compression stage (and compression cache) is skipped. This is appropriate for individual resources where the client does not support compression. -
FOR_AGGREGATION
Turns off all caching and minification of the resource, which is appropriate when the individual resource will be aggregated with other resources to form a virtual composite.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-