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.
|
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(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 DataSize getMinResponseSize()
public void setMinResponseSize(DataSize minSize)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.