|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.base.stats.BytesSentFilter
public class BytesSentFilter
A filter to measure the total bytes transferred over the lifetime of the user's session. Note, this will only measure resources the filter is mapped to (ie, *.jsp or /foo/something.jsp).
Nested Class Summary | |
---|---|
class |
BytesSentFilter.MonitoredPrintWriter
An extension of PrintWriter that counts bytes. |
class |
BytesSentFilter.MonitoredResponse
A wrapper class to a HttpServletResponse which monitors the amount of bytes transferred. |
class |
BytesSentFilter.MonitoredServletOutputStream
A simple extension of the ServletOutputStream class which counts outgoing bytes. |
Field Summary | |
---|---|
static boolean |
setup
|
Constructor Summary | |
---|---|
BytesSentFilter()
|
Method Summary | |
---|---|
void |
destroy()
Does nothing. |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain chain)
Wraps the HTTP response object with a class to measure the bytes sent back to the user. |
void |
init(javax.servlet.FilterConfig filterConfig)
Does nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean setup
Constructor Detail |
---|
public BytesSentFilter()
Method Detail |
---|
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
java.io.IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |