CompressionSettings Class
- java.
lang. Object - com.
microsoft. azure. management. cdn. CompressionSettings
- com.
public class CompressionSettings
settings for compression.
Constructor Summary
Constructor | Description | |
---|---|---|
CompressionSettings() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
contentTypesToCompress()
Get list of content types on which compression applies. |
java.lang.Boolean |
isCompressionEnabled()
Get indicates whether content compression is enabled on Azure |
Compression |
withContentTypesToCompress(List<String> contentTypesToCompress)
Set list of content types on which compression applies. |
Compression |
withIsCompressionEnabled(Boolean isCompressionEnabled)
Set indicates whether content compression is enabled on Azure |
Methods inherited from java.lang.Object
Constructor Details
CompressionSettings
public CompressionSettings()
Method Details
contentTypesToCompress
public List
Get list of content types on which compression applies. The value should be a valid MIME type.
Returns:
isCompressionEnabled
public Boolean isCompressionEnabled()
Get indicates whether content compression is enabled on AzureFrontDoor. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
Returns:
withContentTypesToCompress
public CompressionSettings withContentTypesToCompress(List
Set list of content types on which compression applies. The value should be a valid MIME type.
Parameters:
Returns:
withIsCompressionEnabled
public CompressionSettings withIsCompressionEnabled(Boolean isCompressionEnabled)
Set indicates whether content compression is enabled on AzureFrontDoor. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for