Package com.linecorp.armeria.spring
Class ArmeriaSettings.Compression
java.lang.Object
com.linecorp.armeria.spring.ArmeriaSettings.Compression
- Enclosing class:
- ArmeriaSettings
public static class ArmeriaSettings.Compression extends Object
Configurations for the HTTP content encoding.
-
Constructor Summary
Constructors Constructor Description Compression()
-
Method Summary
Modifier and Type Method Description String[]
getExcludedUserAgents()
Returns the"user-agent"
header values which are not applicable for the HTTP content encoding.String[]
getMimeTypes()
Returns the MIME Types of an HTTP response which are applicable for the HTTP content encoding.String
getMinResponseSize()
Returns the minimum bytes for encoding the content of an HTTP response.boolean
isEnabled()
Returnstrue
if the HTTP content encoding is enabled.void
setEnabled(boolean enabled)
Sets whether the HTTP content encoding is enabled.void
setExcludedUserAgents(String[] excludedUserAgents)
Sets the"user-agent"
header values which are not applicable for the HTTP content encoding.void
setMimeTypes(String[] mimeTypes)
Sets the MIME Types of an HTTP response which are applicable for the HTTP content encoding.void
setMinResponseSize(String minResponseSize)
Sets the minimum bytes for encoding the content of an HTTP response.
-
Constructor Details
-
Compression
public Compression()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returnstrue
if the HTTP content encoding is enabled. -
setEnabled
public void setEnabled(boolean enabled)Sets whether the HTTP content encoding is enabled. -
getMimeTypes
Returns the MIME Types of an HTTP response which are applicable for the HTTP content encoding. -
setMimeTypes
Sets the MIME Types of an HTTP response which are applicable for the HTTP content encoding. -
getExcludedUserAgents
Returns the"user-agent"
header values which are not applicable for the HTTP content encoding. -
setExcludedUserAgents
Sets the"user-agent"
header values which are not applicable for the HTTP content encoding. -
getMinResponseSize
Returns the minimum bytes for encoding the content of an HTTP response. -
setMinResponseSize
Sets the minimum bytes for encoding the content of an HTTP response.
-