Class RedirectScopeManager

java.lang.Object
fr.paris.lutece.portal.web.cdi.mvc.RedirectScopeManager

@ApplicationScoped public class RedirectScopeManager extends Object
  • Field Details

    • REDIRECT_SCOPE_COOKIES

      public static String REDIRECT_SCOPE_COOKIES
      Boolean property that when set to true indicates Krazo to use cookies instead of the default URL re-write mechanism to implement redirect scope.
    • REDIRECT_SCOPE_QUERY_PARAM_NAME

      public static String REDIRECT_SCOPE_QUERY_PARAM_NAME
      String property that determines the name of the request attribute/parameter to be used in
    • DEFAULT_QUERY_PARAM_NAME

      public static final String DEFAULT_QUERY_PARAM_NAME
      See Also:
    • SCOPE_ID

      public static final String SCOPE_ID
      See Also:
  • Constructor Details

    • RedirectScopeManager

      public RedirectScopeManager()
  • Method Details

    • destroy

      public void destroy(jakarta.enterprise.context.spi.Contextual contextual)
      Destroy the instance.
      Parameters:
      contextual - the contextual.
    • get

      public <T> T get(jakarta.enterprise.context.spi.Contextual<T> contextual)
      Get the instance.
      Type Parameters:
      T - the type.
      Parameters:
      contextual - the contextual.
      Returns:
      the instance, or null.
    • get

      public <T> T get(jakarta.enterprise.context.spi.Contextual<T> contextual, jakarta.enterprise.context.spi.CreationalContext<T> creational)
      Get the instance (create it if it does not exist).
      Type Parameters:
      T - the type.
      Parameters:
      contextual - the contextual.
      creational - the creational.
      Returns:
      the instance.
    • beforeProcessControllerEvent

      public void beforeProcessControllerEvent(@Observes @Priority(1) BeforeControllerEvent event)
      Update scopeId request attribute based on either cookie or URL query param information received in the request.
      Parameters:
      event - the event.
    • afterProcessViewEvent

      public void afterProcessViewEvent(@Observes AfterProcessViewEvent event)
      Perform the work we need to do at AfterProcessViewEvent time.
      Parameters:
      event - the event.
    • controllerRedirectEvent

      public void controllerRedirectEvent(@Observes @Priority(3000) ControllerRedirectEvent event)
      Upon detecting a redirect, either add cookie to response or re-write URL of new location to co-relate next request.
      Parameters:
      event - the event.