public class EchoInterceptor extends java.lang.Object implements ActionInterceptor
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
prefixIn |
protected java.lang.String |
prefixOut |
Constructor and Description |
---|
EchoInterceptor() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
intercept(ActionRequest actionRequest)
Measure action invocation time.
|
protected void |
out(java.lang.String message)
Outputs info message.
|
protected void |
printAfter(ActionRequest request,
long executionTime,
java.lang.Object result)
Prints out the message.
|
protected void |
printBefore(ActionRequest request)
Prints out the message.
|
void |
setPrefixIn(java.lang.String prefixIn) |
void |
setPrefixOut(java.lang.String prefixOut) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
init
protected java.lang.String prefixIn
protected java.lang.String prefixOut
public void setPrefixIn(java.lang.String prefixIn)
public void setPrefixOut(java.lang.String prefixOut)
public java.lang.Object intercept(ActionRequest actionRequest) 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.Object result)
protected void out(java.lang.String message)
Copyright © 2003-present Jodd Team