Interface BeforeControllerEvent

All Superinterfaces:
MvcEvent
All Known Implementing Classes:
BeforeControllerEventImpl

public interface BeforeControllerEvent extends MvcEvent
Event triggered before the execution of the MVC controller logic(view and action).

This event allows observers to intercept the request at an early stage, typically to perform tasks such as:

  • Modifying request parameters or attributes
  • Injecting contextual data
  • Performing pre-processing or validation
  • Short-circuiting the controller execution if needed

It is part of the MVC event lifecycle and is fired before any controller-specific (view or action) is run.

See Also:
  • Method Details

    • getInvokedMethod

      Method getInvokedMethod()
      Returns the controller method that is about to be invoked.
      Returns:
      a Method object representing the target controller method
    • isBackOffice

      boolean isBackOffice()
      Indicates whether the current request is in the back-office (BO) context.
      Returns:
      true if the request is part of the back-office, false otherwise
    • getInvocationType

      Indicates the type of controller invocation (e.g., view, action, messageBox).
      Returns:
      a MvcEvent.ControllerInvocationType enum describing the nature of the method being invoked
    • isSecurityTokenEnabled

      boolean isSecurityTokenEnabled()
      Returns the status of the automatic security token generation and validation.
      Returns:
      true if the controller uses the automatic security token process, false otherwise