|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.madvoc.interceptor.ActionInterceptor
public abstract class ActionInterceptor
Action interceptor.
| Field Summary | |
|---|---|
protected boolean |
enabled
|
protected boolean |
initialized
|
| Constructor Summary | |
|---|---|
ActionInterceptor()
|
|
| Method Summary | |
|---|---|
void |
init()
Invoked on interceptor initialization. |
void |
initialized()
Marks that interceptor is initialized. |
abstract java.lang.Object |
intercept(ActionRequest actionRequest)
Intercepts action requests. |
java.lang.Object |
invoke(ActionRequest actionRequest)
Invokes interceptor using enabled information. |
boolean |
isEnabled()
Returns true if interceptor is enabled. |
boolean |
isInitialized()
Returns true if interceptor is initialized. |
void |
setEnabled(boolean enabled)
Defines if interceptor is enabled. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean enabled
protected boolean initialized
| Constructor Detail |
|---|
public ActionInterceptor()
| Method Detail |
|---|
public final boolean isInitialized()
true if interceptor is initialized.
public final void initialized()
public boolean isEnabled()
true if interceptor is enabled.
public void setEnabled(boolean enabled)
public void init()
public final java.lang.Object invoke(ActionRequest actionRequest)
throws java.lang.Exception
enabled information.
When interceptor is disabled, control is passed to the next one.
When interceptor is enabled, it will be invoked before the next
one (or the action).
java.lang.Exception
public abstract java.lang.Object intercept(ActionRequest actionRequest)
throws java.lang.Exception
java.lang.Exceptionpublic 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 | ||||||||