Class RedirectScopeManager
java.lang.Object
fr.paris.lutece.portal.web.cdi.mvc.RedirectScopeManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic StringString property that determines the redirect Cookie name to be used instatic StringBoolean property that when set totrueindicates Krazo to use cookies instead of the default URL re-write mechanism to implement redirect scope.static StringString property that determines the name of the request attribute/parameter to be used instatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPerform the work we need to do at AfterProcessViewEvent time.voidUpdate scopeId request attribute based on either cookie or URL query param information received in the request.voidUpon detecting a redirect, either add cookie to response or re-write URL of new location to co-relate next request.voiddestroy(jakarta.enterprise.context.spi.Contextual contextual) Destroy the instance.<T> Tget(jakarta.enterprise.context.spi.Contextual<T> contextual) Get the instance.<T> Tget(jakarta.enterprise.context.spi.Contextual<T> contextual, jakarta.enterprise.context.spi.CreationalContext<T> creational) Get the instance (create it if it does not exist).
-
Field Details
-
REDIRECT_SCOPE_COOKIES
Boolean property that when set totrueindicates Krazo to use cookies instead of the default URL re-write mechanism to implement redirect scope. -
REDIRECT_SCOPE_QUERY_PARAM_NAME
String property that determines the name of the request attribute/parameter to be used in -
REDIRECT_SCOPE_COOKIE_NAME
String property that determines the redirect Cookie name to be used in -
DEFAULT_QUERY_PARAM_NAME
- See Also:
-
DEFAULT_COOKIE_NAME
- See Also:
-
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
Update scopeId request attribute based on either cookie or URL query param information received in the request.- Parameters:
event- the event.
-
afterProcessViewEvent
Perform the work we need to do at AfterProcessViewEvent time.- Parameters:
event- the event.
-
controllerRedirectEvent
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.
-