public class Compression
extends java.lang.Object
Constructor and Description |
---|
Compression() |
Modifier and Type | Method and Description |
---|---|
boolean |
getEnabled()
Return whether response compression is enabled.
|
java.lang.String[] |
getExcludedUserAgents() |
java.lang.String[] |
getMimeTypes()
Return the MIME types that should be compressed.
|
org.springframework.util.unit.DataSize |
getMinResponseSize()
Return the minimum "Content-Length" value that is required for compression to be
performed.
|
void |
setEnabled(boolean enabled) |
void |
setExcludedUserAgents(java.lang.String[] excludedUserAgents) |
void |
setMimeTypes(java.lang.String[] mimeTypes) |
void |
setMinResponseSize(org.springframework.util.unit.DataSize minSize) |
public boolean getEnabled()
true
if response compression is enabledpublic void setEnabled(boolean enabled)
public java.lang.String[] getMimeTypes()
public void setMimeTypes(java.lang.String[] mimeTypes)
public java.lang.String[] getExcludedUserAgents()
public void setExcludedUserAgents(java.lang.String[] excludedUserAgents)
public org.springframework.util.unit.DataSize getMinResponseSize()
public void setMinResponseSize(org.springframework.util.unit.DataSize minSize)