wicket.settings
Interface ISessionSettings

All Known Implementing Classes:
Settings

public interface ISessionSettings

Interface for session related settings

pageFactory - The factory class that is used for constructing page instances.

pageMapEvictionStrategy - The strategy for evicting pages from page maps when they are too full

maxPageMaps - The maximum number of page maps allowed in a session (to prevent denial of service attacks)

Author:
Igor Vaynberg (ivaynberg)

Method Summary
 int getMaxPageMaps()
          Gets maximum number of page maps allowed in this session
 IPageFactory getPageFactory()
          Gets the factory to be used when creating pages
 IPageMapEvictionStrategy getPageMapEvictionStrategy()
          Gets the strategy for evicting pages from the page map.
 void setMaxPageMaps(int maxPageMaps)
          Sets maximum number of page maps allowed in this session
 void setPageFactory(IPageFactory pageFactory)
          Sets the factory to be used when creating pages.
 void setPageMapEvictionStrategy(IPageMapEvictionStrategy pageMapEvictionStrategy)
          Sets the strategy for evicting pages from the page map.
 

Method Detail

getMaxPageMaps

int getMaxPageMaps()
Gets maximum number of page maps allowed in this session

Returns:
Maximum number of page maps

getPageFactory

IPageFactory getPageFactory()
Gets the factory to be used when creating pages

Returns:
The default page factory

getPageMapEvictionStrategy

IPageMapEvictionStrategy getPageMapEvictionStrategy()
Gets the strategy for evicting pages from the page map.

Returns:
the strategy for evicting pages from the page map

setMaxPageMaps

void setMaxPageMaps(int maxPageMaps)
Sets maximum number of page maps allowed in this session

Parameters:
maxPageMaps - Maximum number of page maps

setPageFactory

void setPageFactory(IPageFactory pageFactory)
Sets the factory to be used when creating pages.

Parameters:
pageFactory - The default factory

setPageMapEvictionStrategy

void setPageMapEvictionStrategy(IPageMapEvictionStrategy pageMapEvictionStrategy)
Sets the strategy for evicting pages from the page map.

Parameters:
pageMapEvictionStrategy - the strategy for evicting pages from the page map


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