|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.planetj.servlet.filter.compression.CompressingFilterStats
public final class CompressingFilterStats
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:
ServletContext ctx = ...; // in a JSP, "ctx" is already available as the "application" variable CompressingFilterStats stats = (CompressingFilterStats) ctx.getAttribute(CompressingFilterStats.STATS_KEY); double ratio = stats.getAverageCompressionRatio(); ...
| Field Summary | |
|---|---|
static java.lang.String |
STATS_KEY
Key under which a CompressingFilterStats object can be found in the servlet context. |
| Method Summary | |
|---|---|
double |
getAverageCompressionRatio()
Deprecated. use getResponseAverageCompressionRatio() |
long |
getCompressedBytes()
Deprecated. use getResponseCompressedBytes() |
long |
getInputBytes()
Deprecated. use getResponseInputBytes() |
int |
getNumRequestsCompressed()
|
int |
getNumResponsesCompressed()
|
double |
getRequestAverageCompressionRatio()
|
long |
getRequestCompressedBytes()
|
long |
getRequestInputBytes()
|
double |
getResponseAverageCompressionRatio()
|
long |
getResponseCompressedBytes()
|
long |
getResponseInputBytes()
|
int |
getTotalRequestsNotCompressed()
|
int |
getTotalResponsesNotCompressed()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String STATS_KEY
CompressingFilterStats object can be found in the servlet context.
| Method Detail |
|---|
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
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||