public final class CompressingFilterStats
extends java.lang.Object
implements java.io.Serializable
This class provides runtime statistics on the performance of
CompressingFilter
. If stats are enabled, then an instance of this
object will be available in the servlet context under the key
STATS_KEY
. It can be retrieved and used like so:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STATS_KEY
Key under which a
CompressingFilterStats object can be found in
the servlet context. |
Modifier and Type | Method and Description |
---|---|
double |
getAverageCompressionRatio()
Deprecated.
|
long |
getCompressedBytes()
Deprecated.
|
long |
getInputBytes()
Deprecated.
|
int |
getNumRequestsCompressed() |
int |
getNumResponsesCompressed() |
double |
getRequestAverageCompressionRatio() |
long |
getRequestCompressedBytes() |
long |
getRequestInputBytes() |
double |
getResponseAverageCompressionRatio() |
long |
getResponseCompressedBytes() |
long |
getResponseInputBytes() |
int |
getTotalRequestsNotCompressed() |
int |
getTotalResponsesNotCompressed() |
java.lang.String |
toString() |
public static final java.lang.String STATS_KEY
CompressingFilterStats
object can be found in
the servlet context.public int getNumResponsesCompressed()
CompressingFilter
has
compressed.public int getTotalResponsesNotCompressed()
CompressingFilter
has
processed but not compressed for some reason (compression not
supported by the browser, for example).@Deprecated public long getInputBytes()
getResponseInputBytes()
public long getResponseInputBytes()
CompressingFilter
in
responses.@Deprecated public long getCompressedBytes()
getResponseCompressedBytes()
public long getResponseCompressedBytes()
CompressingFilter
to the client in responses.@Deprecated public double getAverageCompressionRatio()
getResponseAverageCompressionRatio()
public double getResponseAverageCompressionRatio()
public int getNumRequestsCompressed()
CompressingFilter
has
compressed.public int getTotalRequestsNotCompressed()
CompressingFilter
has
processed but not compressed for some reason (no compression
requested, for example).public long getRequestInputBytes()
CompressingFilter
in
requests.public long getRequestCompressedBytes()
CompressingFilter
to the client in requests.public double getRequestAverageCompressionRatio()
public java.lang.String toString()
toString
in class java.lang.Object