| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| public static interface | CompressionConfig.
Common CompressionMode interface. |
| Modifier and Type | Field and Description |
|---|---|
| private final ArraySet | |
| private int | |
| private CompressionConfig. | |
| private boolean | |
| private final ArraySet |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | CompressionConfig(final CompressionConfig.
|
| public | CompressionConfig(final CompressionConfig.
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | checkMimeType(final String contentType)
Returns true if the resource with the given content-type could be compressed, or false otherwise. |
| public boolean | checkUserAgent(final HttpRequestPacket request)
Returns true if based on this configuration user-agent, specified in the |
| public Set | getCompressableMimeTypes()
Deprecated
Use
getCompressibleMimeTypes()
Returns the read-only set of the mime-types, which are allowed to be compressed. |
| public Set | getCompressibleMimeTypes()
Returns the read-only set of the mime-types, which are allowed to be compressed. |
| public int | |
| public CompressionConfig. | |
| public Set | getNoCompressionUserAgents()
Returns the read-only set of the user-agents, which will be always responded with uncompressed are. |
| private static int | |
| private static int | |
| public static boolean | Returns: true if a client, based on itsHttpRequestPacket, could be responded with compressed data,
or false otherwiseclient-side request, final String[] HttpRequestPacketcompression algorithm aliases (to match with Accept-Encoding header) aliases)Returns true if a client, based on its |
| private static boolean | |
| public boolean | |
| public void | set(final CompressionConfig compression)
Copies the source CompressionConfig object value into this object. |
| public void | setCompressableMimeTypes(final Set<String> compressibleMimeTypes)
Deprecated
Use
setCompressibleMimeTypes(Set)
Sets the set of the mime-types, which are allowed to be compressed. |
| public void | setCompressableMimeTypes(final String... compressibleMimeTypes)
Deprecated
Use
setCompressibleMimeTypes(String.
Sets the set of the mime-types, which are allowed to be compressed. |
| public void | setCompressibleMimeTypes(final Set<String> compressibleMimeTypes)
Sets the set of the mime-types, which are allowed to be compressed. |
| public void | setCompressibleMimeTypes(final String... compressibleMimeTypes)
Sets the set of the mime-types, which are allowed to be compressed. |
| public void | setCompressionMinSize(int compressionMinSize)
Sets the minimum size of an entity, which will be compressed. |
| public void | |
| public void | setDecompressionEnabled(boolean decompressionEnabled)
If set to |
| public void | setNoCompressionUserAgents(final Set<String> noCompressionUserAgents)
Sets the set of the user-agents, which will be always responded with uncompressed data. |
| public void | setNoCompressionUserAgents(final String... noCompressionUserAgents)
Sets the set of the user-agents, which will be always responded with uncompressed data. |
| compressibleMimeTypes | back to summary |
|---|---|
| private final ArraySet<String> compressibleMimeTypes | |
| compressionMinSize | back to summary |
|---|---|
| private int compressionMinSize | |
| compressionMode | back to summary |
|---|---|
| private CompressionConfig. | |
| decompressionEnabled | back to summary |
|---|---|
| private boolean decompressionEnabled | |
| noCompressionUserAgents | back to summary |
|---|---|
| private final ArraySet<String> noCompressionUserAgents | |
| CompressionConfig | back to summary |
|---|---|
| public CompressionConfig() | |
| CompressionConfig | back to summary |
|---|---|
| public CompressionConfig(final CompressionConfig compression) The copy constructor. The newly constructed CompressionConfig object will have the same settings as the source one, but actual values will be independent, so changes to one CompressionConfig object will not affect the other one.
| |
| CompressionConfig | back to summary |
|---|---|
| public CompressionConfig(final CompressionConfig. | |
| CompressionConfig | back to summary |
|---|---|
| public CompressionConfig(final CompressionConfig. | |
| checkMimeType | back to summary |
|---|---|
| public boolean checkMimeType(final String contentType) Returns true if the resource with the given content-type could be compressed, or false otherwise. | |
| checkUserAgent | back to summary |
|---|---|
| public boolean checkUserAgent(final HttpRequestPacket request) Returns true if based on this configuration user-agent, specified in the | |
| getCompressableMimeTypes | back to summary |
|---|---|
| public Set Deprecated Returns the read-only set of the mime-types, which are allowed to be compressed. Empty set means *all* mime-types are allowed to be compressed.
| |
| getCompressibleMimeTypes | back to summary |
|---|---|
| public Set Returns the read-only set of the mime-types, which are allowed to be compressed. Empty set means *all* mime-types are allowed to be compressed.
| |
| getCompressionMinSize | back to summary |
|---|---|
| public int getCompressionMinSize() Returns the minimum size of an entity, which will be compressed. | |
| getCompressionMode | back to summary |
|---|---|
| public CompressionConfig. Returns the | |
| getNoCompressionUserAgents | back to summary |
|---|---|
| public Set Returns the read-only set of the user-agents, which will be always responded with uncompressed are. Empty set means that compressed data could be sent to *all* user-agents. | |
| indexOf | back to summary |
|---|---|
| private static int indexOf(String[] aliases, DataChunk dc) | |
| indexOfStartsWith | back to summary |
|---|---|
| private static int indexOfStartsWith(String[] aliases, String s) | |
| isClientSupportCompression | back to summary |
|---|---|
| public static boolean isClientSupportCompression(final CompressionConfig compressionConfig, final HttpRequestPacket request, final String[] aliases) Returns true if a client, based on its
| |
| isClientSupportContentEncoding | back to summary |
|---|---|
| private static boolean isClientSupportContentEncoding(HttpRequestPacket request, final String[] aliases) | |
| isDecompressionEnabled | back to summary |
|---|---|
public boolean isDecompressionEnabled()
| |
| set | back to summary |
|---|---|
| public void set(final CompressionConfig compression) Copies the source CompressionConfig object value into this object. As the result this CompressionConfig object will have the same settings as the source one, but actual values will be independent, so changes to one CompressionConfig object will not affect the other one. | |
| setCompressableMimeTypes | back to summary |
|---|---|
| public void setCompressableMimeTypes(final Set<String> compressibleMimeTypes)
Deprecated Sets the set of the mime-types, which are allowed to be compressed. Empty set means *all* mime-types are allowed to be compressed. Please note that CompressionConfig object will copy the source Set content, so further changes made on the source Set will not affect CompressionConfig object state.
| |
| setCompressableMimeTypes | back to summary |
|---|---|
| public void setCompressableMimeTypes(final String... compressibleMimeTypes)
Deprecated Sets the set of the mime-types, which are allowed to be compressed. Empty set means *all* mime-types are allowed to be compressed. Please note that CompressionConfig object will copy the source Set content, so further changes made on the source Set will not affect CompressionConfig object state.
| |
| setCompressibleMimeTypes | back to summary |
|---|---|
| public void setCompressibleMimeTypes(final Set<String> compressibleMimeTypes) Sets the set of the mime-types, which are allowed to be compressed. Empty set means *all* mime-types are allowed to be compressed. Please note that CompressionConfig object will copy the source Set content, so further changes made on the source Set will not affect CompressionConfig object state.
| |
| setCompressibleMimeTypes | back to summary |
|---|---|
| public void setCompressibleMimeTypes(final String... compressibleMimeTypes) Sets the set of the mime-types, which are allowed to be compressed. Empty set means *all* mime-types are allowed to be compressed. Please note that CompressionConfig object will copy the source Set content, so further changes made on the source Set will not affect CompressionConfig object state.
| |
| setCompressionMinSize | back to summary |
|---|---|
| public void setCompressionMinSize(int compressionMinSize) Sets the minimum size of an entity, which will be compressed. | |
| setCompressionMode | back to summary |
|---|---|
| public void setCompressionMode(final CompressionConfig. Sets the | |
| setDecompressionEnabled | back to summary |
|---|---|
| public void setDecompressionEnabled(boolean decompressionEnabled) If set to
| |
| setNoCompressionUserAgents | back to summary |
|---|---|
| public void setNoCompressionUserAgents(final Set<String> noCompressionUserAgents) Sets the set of the user-agents, which will be always responded with uncompressed data. Empty set means that compressed data could be sent to *all* user-agents. Please note that CompressionConfig object will copy the source Set content, so further changes made on the source Set will not affect CompressionConfig object state. | |
| setNoCompressionUserAgents | back to summary |
|---|---|
| public void setNoCompressionUserAgents(final String... noCompressionUserAgents) Sets the set of the user-agents, which will be always responded with uncompressed data. Empty set means that compressed data could be sent to *all* user-agents. Please note that CompressionConfig object will copy the source Set content, so further changes made on the source Set will not affect CompressionConfig object state. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final CompressionConfig. | |
| public static final CompressionConfig. | |
| public static final CompressionConfig. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CompressionConfig. | |
| public static CompressionConfig. | |
| public static CompressionConfig. |
| FORCE | back to summary |
|---|---|
| public static final CompressionConfig. | |
| OFF | back to summary |
|---|---|
| public static final CompressionConfig. | |
| ON | back to summary |
|---|---|
| public static final CompressionConfig. | |
| CompressionMode | back to summary |
|---|---|
| private CompressionMode() | |
| fromString | back to summary |
|---|---|
| public static CompressionConfig. Returns the | |
| valueOf | back to summary |
|---|---|
| public static CompressionConfig. | |
| values | back to summary |
|---|---|
| public static CompressionConfig. | |
CompressionMode enum in all the Grizzly core methods, that expect CompressionModeI.
CompressionMode