Package org.codelibs.fess.helper
Class ViewHelper.ActionHook
java.lang.Object
org.codelibs.fess.helper.ViewHelper.ActionHook
- Enclosing class:
ViewHelper
Hook class for customizing action processing.
Provides extension points for action lifecycle management.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgodHandEpilogue(org.lastaflute.web.ruts.process.ActionRuntime runtime, Consumer<org.lastaflute.web.ruts.process.ActionRuntime> consumer) Epilogue hook for action processing.org.lastaflute.web.response.ActionResponsegodHandMonologue(org.lastaflute.web.ruts.process.ActionRuntime runtime, Function<org.lastaflute.web.ruts.process.ActionRuntime, org.lastaflute.web.response.ActionResponse> func) Monologue hook for action processing.org.lastaflute.web.response.ActionResponsegodHandPrologue(org.lastaflute.web.ruts.process.ActionRuntime runtime, Function<org.lastaflute.web.ruts.process.ActionRuntime, org.lastaflute.web.response.ActionResponse> func) Prologue hook for action processing.org.lastaflute.web.response.ActionResponsehookBefore(org.lastaflute.web.ruts.process.ActionRuntime runtime, Function<org.lastaflute.web.ruts.process.ActionRuntime, org.lastaflute.web.response.ActionResponse> func) Before hook for action processing.voidhookFinally(org.lastaflute.web.ruts.process.ActionRuntime runtime, Consumer<org.lastaflute.web.ruts.process.ActionRuntime> consumer) Finally hook for action processing.
-
Constructor Details
-
ActionHook
public ActionHook()Default constructor for ActionHook.
-
-
Method Details
-
godHandPrologue
public org.lastaflute.web.response.ActionResponse godHandPrologue(org.lastaflute.web.ruts.process.ActionRuntime runtime, Function<org.lastaflute.web.ruts.process.ActionRuntime, org.lastaflute.web.response.ActionResponse> func) Prologue hook for action processing.- Parameters:
runtime- the action runtimefunc- the function to execute- Returns:
- the action response
-
godHandMonologue
public org.lastaflute.web.response.ActionResponse godHandMonologue(org.lastaflute.web.ruts.process.ActionRuntime runtime, Function<org.lastaflute.web.ruts.process.ActionRuntime, org.lastaflute.web.response.ActionResponse> func) Monologue hook for action processing.- Parameters:
runtime- the action runtimefunc- the function to execute- Returns:
- the action response
-
godHandEpilogue
public void godHandEpilogue(org.lastaflute.web.ruts.process.ActionRuntime runtime, Consumer<org.lastaflute.web.ruts.process.ActionRuntime> consumer) Epilogue hook for action processing.- Parameters:
runtime- the action runtimeconsumer- the consumer to execute
-
hookBefore
public org.lastaflute.web.response.ActionResponse hookBefore(org.lastaflute.web.ruts.process.ActionRuntime runtime, Function<org.lastaflute.web.ruts.process.ActionRuntime, org.lastaflute.web.response.ActionResponse> func) Before hook for action processing.- Parameters:
runtime- the action runtimefunc- the function to execute- Returns:
- the action response
-
hookFinally
public void hookFinally(org.lastaflute.web.ruts.process.ActionRuntime runtime, Consumer<org.lastaflute.web.ruts.process.ActionRuntime> consumer) Finally hook for action processing.- Parameters:
runtime- the action runtimeconsumer- the consumer to execute
-