|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjodd.madvoc.interceptor.EchoInterceptor
public class EchoInterceptor
Simple interceptor that measures time and prints out information about invoked actions. User may inherit it and change the way message is printed.
Constructor Summary | |
---|---|
EchoInterceptor()
|
Method Summary | |
---|---|
java.lang.String |
intercept(ActionRequest request)
Measure action invocation time. |
protected void |
printAfter(ActionRequest request,
long executionTime,
java.lang.String result)
Prints out the message. |
protected void |
printBefore(ActionRequest request)
Prints out the message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EchoInterceptor()
Method Detail |
---|
public java.lang.String intercept(ActionRequest request) throws java.lang.Exception
intercept
in interface ActionInterceptor
java.lang.Exception
protected void printBefore(ActionRequest request)
protected void printAfter(ActionRequest request, long executionTime, java.lang.String result)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |