public class WindowContextConfig extends Object
| Modifier | Constructor and Description | 
|---|---|
| protected  | WindowContextConfig() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getMaxWindowContextCount()Restricts the number of active windows. | 
| int | getWindowContextTimeoutInMinutes()Specifies the time for the timeout for a window. | 
| boolean | isAddWindowIdToActionUrlsEnabled()if set to  trueCODI will add a windowId=xxx parameter
 while encoding each action URL. | 
| boolean | isCloseEmptyWindowContextsEnabled()Allows to activate the cleanup of empty window contexts to avoid cleanup e.g. | 
| boolean | isCloseWindowContextEventEnabled()Specifies if the
 org.apache.myfaces.extensions.cdi.core.api.scope.conversation.event.CloseWindowContextEvent
 will be fired. | 
| boolean | isCreateWindowContextEventEnabled()Specifies if the
 org.apache.myfaces.extensions.cdi.core.api.scope.conversation.event.CreateWindowContextEvent
 will be fired. | 
| boolean | isEagerWindowContextDetectionEnabled()Allows to restore the window-context before the component tree gets built. | 
| boolean | isUnknownWindowIdsAllowed()Allows to restrict window-ids. | 
| boolean | isUrlParameterSupported()Specifies if it is allowed to use URL params for forwarding the current window-id. | 
public boolean isUrlParameterSupported()
public boolean isUnknownWindowIdsAllowed()
With the default window handler (esp. for JSF 1.2), URLs have to contain the window-id. If users bookmark these links, they could open 2-n tabs (with the bookmark) which have the same window-id. It is only possible to prevent it if the ClientSideWindowHandler is used.
ATTENTION: Since CODI-1.0.6 this is set to true as defalt!
This must be enabled to:
true to allow all windowIds already present in window.name.
         false to only allow window-ids which are generated by CODIpublic boolean isAddWindowIdToActionUrlsEnabled()
true CODI will add a windowId=xxx parameter
 while encoding each action URL.public int getWindowContextTimeoutInMinutes()
public int getMaxWindowContextCount()
public boolean isCloseEmptyWindowContextsEnabled()
public boolean isEagerWindowContextDetectionEnabled()
public boolean isCreateWindowContextEventEnabled()
public boolean isCloseWindowContextEventEnabled()
Copyright © 2022 The Apache Software Foundation. All rights reserved.