org.apache.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.
 boolean isPageIdUniquePerSession()
          Returns whether the page id is unique per session.
 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 setPageIdUniquePerSession(boolean value)
          Sets whether the id of a page should be unique across the entire session.
 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

setPageIdUniquePerSession

void setPageIdUniquePerSession(boolean value)
Sets whether the id of a page should be unique across the entire session. Default is true, which means that a page id is unique per session.

Parameters:
value -

isPageIdUniquePerSession

boolean isPageIdUniquePerSession()
Returns whether the page id is unique per session. If the page id is not unique per session, it is only unique per pagemap.

Returns:


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.