public class Compression extends Object
Constructor and Description |
---|
Compression() |
Modifier and Type | Method and Description |
---|---|
boolean |
getEnabled()
Return whether response compression is enabled.
|
String[] |
getExcludedUserAgents() |
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(String[] excludedUserAgents) |
void |
setMimeTypes(String[] mimeTypes) |
void |
setMinResponseSize(org.springframework.util.unit.DataSize minSize) |
public boolean getEnabled()
true
if response compression is enabledpublic void setEnabled(boolean enabled)
public String[] getMimeTypes()
public void setMimeTypes(String[] mimeTypes)
public String[] getExcludedUserAgents()
public void setExcludedUserAgents(String[] excludedUserAgents)
public org.springframework.util.unit.DataSize getMinResponseSize()
public void setMinResponseSize(org.springframework.util.unit.DataSize minSize)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.