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()
Return the user agents for which responses should not be compressed.
|
String[] |
getMimeTypes()
Return the MIME types that should be compressed.
|
int |
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(int 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 int getMinResponseSize()
public void setMinResponseSize(int minSize)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.