wicket.jmx
Class PageSettings

java.lang.Object
  extended by wicket.jmx.PageSettings
All Implemented Interfaces:
PageSettingsMBean

public class PageSettings
extends java.lang.Object
implements PageSettingsMBean

Exposes Application related functionality for JMX.

Author:
eelcohillenius

Constructor Summary
PageSettings(wicket.Application application)
          Create.
 
Method Summary
 boolean getAutomaticMultiWindowSupport()
          Gets whether Wicket should try to support opening multiple windows for the same session transparently.
 int getMaxPageVersions()
           
 boolean getVersionPagesByDefault()
           
 void setAutomaticMultiWindowSupport(boolean automaticMultiWindowSupport)
          Sets whether Wicket should try to support opening multiple windows for the same session transparently.
 void setMaxPageVersions(int maxPageVersions)
           
 void setVersionPagesByDefault(boolean pagesVersionedByDefault)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageSettings

public PageSettings(wicket.Application application)
Create.

Parameters:
application -
Method Detail

getAutomaticMultiWindowSupport

public boolean getAutomaticMultiWindowSupport()
Description copied from interface: PageSettingsMBean
Gets whether Wicket should try to support opening multiple windows for the same session transparently. If this is true - the default setting -, Wicket tries to detect whether a new window was opened by a user (e.g. in Internet Explorer by pressing ctrl+n or ctrl+click on a link), and if it detects that, it creates a new page map for that window on the fly. As a page map represents the 'history' of one window, each window will then have their own history. If two windows would share the same page map, the non-bookmarkable links on one window could refer to stale state after working a while in the other window.

Currently, Wicket trying to do this is a best effort that is not completely fail safe. When the client does not support cookies, support gets tricky and incomplete. See WebPage's internals for the implementation.

Specified by:
getAutomaticMultiWindowSupport in interface PageSettingsMBean
Returns:
Whether Wicket should try to support multiple windows transparently
See Also:
PageSettingsMBean.getAutomaticMultiWindowSupport()

getMaxPageVersions

public int getMaxPageVersions()
Specified by:
getMaxPageVersions in interface PageSettingsMBean
Returns:
Returns the maxPageVersions.
See Also:
PageSettingsMBean.getMaxPageVersions()

getVersionPagesByDefault

public boolean getVersionPagesByDefault()
Specified by:
getVersionPagesByDefault in interface PageSettingsMBean
Returns:
Returns the pagesVersionedByDefault.
See Also:
PageSettingsMBean.getVersionPagesByDefault()

setAutomaticMultiWindowSupport

public void setAutomaticMultiWindowSupport(boolean automaticMultiWindowSupport)
Description copied from interface: PageSettingsMBean
Sets whether Wicket should try to support opening multiple windows for the same session transparently. If this is true - the default setting -, Wicket tries to detect whether a new window was opened by a user (e.g. in Internet Explorer by pressing ctrl+n or ctrl+click on a link), and if it detects that, it creates a new page map for that window on the fly. As a page map represents the 'history' of one window, each window will then have their own history. If two windows would share the same page map, the non-bookmarkable links on one window could refer to stale state after working a while in the other window.

Currently, Wicket trying to do this is a best effort that is not completely fail safe. When the client does not support cookies, support gets tricky and incomplete. See WebPage's internals for the implementation.

Specified by:
setAutomaticMultiWindowSupport in interface PageSettingsMBean
Parameters:
automaticMultiWindowSupport - Whether Wicket should try to support multiple windows transparently
See Also:
PageSettingsMBean.setAutomaticMultiWindowSupport(boolean)

setMaxPageVersions

public void setMaxPageVersions(int maxPageVersions)
Specified by:
setMaxPageVersions in interface PageSettingsMBean
Parameters:
maxPageVersions - The maxPageVersion to set.
See Also:
PageSettingsMBean.setMaxPageVersions(int)

setVersionPagesByDefault

public void setVersionPagesByDefault(boolean pagesVersionedByDefault)
Specified by:
setVersionPagesByDefault in interface PageSettingsMBean
Parameters:
pagesVersionedByDefault - The pagesVersionedByDefault to set.
See Also:
PageSettingsMBean.setVersionPagesByDefault(boolean)


Copyright © 2004-2007 Wicket developers. All Rights Reserved.