|
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.util.TimerFilter
public class TimerFilter
A simple filter which records the execution time of the filter. A TimerFilter.Timer
object is put in the request as an attribute. This can be used by included servlets or JSPs.
Nested Class Summary | |
---|---|
static class |
TimerFilter.Timer
A *simple* model of a timer. |
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_TIMER_ATTRIBUTE
The default attribute name of the timer object in the request. |
Constructor Summary | |
---|---|
TimerFilter()
|
Method Summary | |
---|---|
void |
destroy()
Does nothing. |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
Creates a Timer object, puts it in the request as an attribute then times the doFilter(..) call. |
void |
handleTimer(TimerFilter.Timer timer)
Does nothing in this implementation. |
void |
init(javax.servlet.FilterConfig filterConfig)
Sets the timer attribute name to the value of the 'key' init paramter if it was set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_TIMER_ATTRIBUTE
Constructor Detail |
---|
public TimerFilter()
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 filterChain) throws java.io.IOException, javax.servlet.ServletException
handleTimer(TimerFilter.Timer)
method is called.
doFilter
in interface javax.servlet.Filter
java.io.IOException
javax.servlet.ServletException
public void handleTimer(TimerFilter.Timer timer)
timer
- the completed timer.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 |