Class RedirectAlertMessageHandler
java.lang.Object
fr.paris.lutece.portal.util.mvc.utils.RedirectAlertMessageHandler
Handles alert messages during redirect events.
This bean observes controller redirect events and transfers messages between the Models and the AlertMessage instance. It supports error, warning, and info messages using the generic MessageType enum.
It ensures that the AlertMessage bean is only used if the RedirectScoped context is active.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidObserves a BeforeControllerEvent before invoking the next controller after a redirect.voidObserves a controller redirect event just before sending a redirect.
-
Constructor Details
-
RedirectAlertMessageHandler
public RedirectAlertMessageHandler()
-
-
Method Details
-
onRedirect
Observes a controller redirect event just before sending a redirect.Transfers messages from the Models into the AlertMessage bean for later use.
- Parameters:
event- the controller redirect event
-
onBeforeController
Observes a BeforeControllerEvent before invoking the next controller after a redirect.Transfers messages from the AlertMessage bean back into the Models for the next request.
- Parameters:
event- the BeforeControllerEvent
-