wicket.settings
Interface IApplicationSettings

All Known Implementing Classes:
Settings

public interface IApplicationSettings

Settings interface for application settings.

internalErrorPage - You can override this with your own page class to display internal errors in a different way.

pageExpiredErrorPage - You can override this with your own bookmarkable page class to display expired page errors in a different way. You can set property homePageRenderStrategy to choose from different ways the home page url shows up in your browser.

A Converter Factory - By overriding getConverterFactory(), you can provide your own factory which creates locale sensitive Converter instances.

Author:
Jonathan Locke

Method Summary
 java.lang.Class getAccessDeniedPage()
          Gets the access denied page class.
 IClassResolver getClassResolver()
          Gets the default resolver to use when finding classes
 java.lang.String getContextPath()
          Gets context path to use for absolute path generation.
 IConverterFactory getConverterFactory()
          Gets the converter factory.
 java.util.Locale getDefaultLocale()
           
 java.lang.Class getInternalErrorPage()
          Gets internal error page class.
 java.lang.Class getPageExpiredErrorPage()
          Gets the page expired page class.
 void setAccessDeniedPage(java.lang.Class accessDeniedPage)
          Sets the access denied page class.
 void setClassResolver(IClassResolver defaultClassResolver)
          Sets the default class resolver to use when finding classes.
 void setContextPath(java.lang.String contextPath)
          Sets context path to use for absolute path generation.
 void setConverterFactory(IConverterFactory factory)
          Sets converter factory
 void setDefaultLocale(java.util.Locale defaultLocale)
           
 void setInternalErrorPage(java.lang.Class internalErrorPage)
          Sets internal error page class.
 void setPageExpiredErrorPage(java.lang.Class pageExpiredErrorPage)
          Sets the page expired page class.
 

Method Detail

getAccessDeniedPage

java.lang.Class getAccessDeniedPage()
Gets the access denied page class.

Returns:
Returns the accessDeniedPage.
See Also:
setAccessDeniedPage(Class)

getClassResolver

IClassResolver getClassResolver()
Gets the default resolver to use when finding classes

Returns:
Default class resolver

getContextPath

java.lang.String getContextPath()
Gets context path to use for absolute path generation. For example an Application Server that is used as a virtual server on a Webserver:
     appserver.com/context mapped to webserver/ (context path should be '/')
 

Returns:
The context path
See Also:
what the possible values can be.

getConverterFactory

IConverterFactory getConverterFactory()
Gets the converter factory.

Returns:
the converter factory

getDefaultLocale

java.util.Locale getDefaultLocale()
Returns:
Returns the defaultLocale.

getInternalErrorPage

java.lang.Class getInternalErrorPage()
Gets internal error page class.

Returns:
Returns the internalErrorPage.
See Also:
setInternalErrorPage(Class)

getPageExpiredErrorPage

java.lang.Class getPageExpiredErrorPage()
Gets the page expired page class.

Returns:
Returns the pageExpiredErrorPage.
See Also:
setPageExpiredErrorPage(Class)

setAccessDeniedPage

void setAccessDeniedPage(java.lang.Class accessDeniedPage)
Sets the access denied page class. The class must be bookmarkable and must extend Page.

Parameters:
accessDeniedPage - The accessDeniedPage to set.

setClassResolver

void setClassResolver(IClassResolver defaultClassResolver)
Sets the default class resolver to use when finding classes.

Parameters:
defaultClassResolver - The default class resolver

setContextPath

void setContextPath(java.lang.String contextPath)
Sets context path to use for absolute path generation. For example an Application Server that is used as a virtual server on a Webserver:
     appserver.com/context mapped to webserver/ (context path should be '/')
 
This method can be called in the init phase of the application with the servlet init parameter Application.CONTEXTPATH if it is specified or by the developer itself in the WebApplication init() method. If it is not set in the init phase of the application it will be set automatically on the context path of the request WebRequest.getContextPath()

Parameters:
contextPath - The context path to use.

setConverterFactory

void setConverterFactory(IConverterFactory factory)
Sets converter factory

Parameters:
factory - new factory

setDefaultLocale

void setDefaultLocale(java.util.Locale defaultLocale)
Parameters:
defaultLocale - The defaultLocale to set.

setInternalErrorPage

void setInternalErrorPage(java.lang.Class internalErrorPage)
Sets internal error page class. The class must be bookmarkable and must extend Page.

Parameters:
internalErrorPage - The internalErrorPage to set.

setPageExpiredErrorPage

void setPageExpiredErrorPage(java.lang.Class pageExpiredErrorPage)
Sets the page expired page class. The class must be bookmarkable and must extend Page.

Parameters:
pageExpiredErrorPage - The pageExpiredErrorPage to set.


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