|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.settings.Settings
public final class Settings
Contains settings exposed via IXXXSettings interfaces. It is not a good idea to use this class directly, instead use the provided IXXXSettings interfaces.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface wicket.settings.IExceptionSettings |
|---|
IExceptionSettings.UnexpectedExceptionDisplay |
| Nested classes/interfaces inherited from interface wicket.settings.IRequestCycleSettings |
|---|
IRequestCycleSettings.RenderStrategy |
| Field Summary |
|---|
| Fields inherited from interface wicket.settings.IExceptionSettings |
|---|
SHOW_EXCEPTION_PAGE, SHOW_INTERNAL_ERROR_PAGE, SHOW_NO_EXCEPTION_PAGE |
| Fields inherited from interface wicket.settings.IRequestCycleSettings |
|---|
ONE_PASS_RENDER, REDIRECT_TO_BUFFER, REDIRECT_TO_RENDER |
| Fields inherited from interface wicket.settings.ISecuritySettings |
|---|
DEFAULT_ENCRYPTION_KEY |
| Constructor Summary | |
|---|---|
Settings(Application application)
Create the application settings, carrying out any necessary initialisations. |
|
| Method Summary | |
|---|---|
void |
addComponentResolver(IComponentResolver resolver)
Adds a component resolver to the list. |
void |
addResourceFactory(java.lang.String name,
IResourceFactory resourceFactory)
Adds a resource factory to the list of factories to consult when generating resources automatically |
void |
addResourceFolder(java.lang.String resourceFolder)
Convenience method that sets the resource search path to a single folder. |
void |
addResponseFilter(IResponseFilter responseFilter)
Adds a response filter to the list. |
void |
addStringResourceLoader(IStringResourceLoader loader)
Add a string resource loader to the chain of loaders. |
java.lang.Class |
getAccessDeniedPage()
Gets the access denied page class. |
IAuthorizationStrategy |
getAuthorizationStrategy()
Gets the authorization strategy. |
boolean |
getAutomaticLinking()
If true, automatic link resolution is enabled. |
boolean |
getAutomaticMultiWindowSupport()
Gets whether Wicket should try to support opening multiple windows for the same session transparently. |
boolean |
getBufferResponse()
|
IClassResolver |
getClassResolver()
Gets the default resolver to use when finding classes |
java.util.List |
getComponentResolvers()
Get the (modifiable) list of IComponentResolvers. |
boolean |
getComponentUseCheck()
|
boolean |
getCompressWhitespace()
|
java.lang.String |
getContextPath()
Gets context path to use for absolute path generation. |
IConverterFactory |
getConverterFactory()
Gets the converter factory. |
CookieValuePersisterSettings |
getCookieValuePersisterSettings()
Get the defaults to be used by persistence manager |
ICryptFactory |
getCryptFactory()
|
java.lang.String |
getDefaultAfterDisabledLink()
|
java.lang.String |
getDefaultBeforeDisabledLink()
|
java.util.Locale |
getDefaultLocale()
|
java.lang.String |
getDefaultMarkupEncoding()
|
boolean |
getGatherExtendedBrowserInfo()
Gets whether Wicket should try to get extensive client info by redirecting to a page that polls for client capabilities. |
java.lang.Class |
getInternalErrorPage()
Gets internal error page class. |
Localizer |
getLocalizer()
Get the application's localizer. |
IMarkupParserFactory |
getMarkupParserFactory()
|
int |
getMaxPageMaps()
Gets maximum number of page maps allowed in this session |
int |
getMaxPageVersions()
|
IPackageResourceGuard |
getPackageResourceGuard()
Gets the package resource guard. |
java.lang.Class |
getPageExpiredErrorPage()
Gets the page expired page class. |
IPageFactory |
getPageFactory()
Gets the factory to be used when creating pages |
IPageMapEvictionStrategy |
getPageMapEvictionStrategy()
Gets the strategy for evicting pages from the page map. |
IPropertiesFactory |
getPropertiesFactory()
Get the property factory which will be used to load property files |
IRequestCycleSettings.RenderStrategy |
getRenderStrategy()
Gets in what way the render part of a request is handled. |
IResourceFactory |
getResourceFactory(java.lang.String name)
|
IResourceFinder |
getResourceFinder()
Gets the resource finder to use when searching for resources. |
Duration |
getResourcePollFrequency()
|
IResourceStreamLocator |
getResourceStreamLocator()
|
ModificationWatcher |
getResourceWatcher()
|
java.util.List |
getResponseFilters()
|
java.lang.String |
getResponseRequestEncoding()
In order to do proper form parameter decoding it is important that the response and the following request have the same encoding. |
boolean |
getSerializeSessionAttributes()
|
java.util.List |
getStringResourceLoaders()
|
boolean |
getStripComments()
|
boolean |
getStripWicketTags()
Gets whether to remove wicket tags from the output. |
boolean |
getStripXmlDeclarationFromOutput()
|
boolean |
getThrowExceptionOnMissingResource()
|
Duration |
getTimeout()
Gets the time that a request will by default be waiting for the previous request to be handled before giving up. |
IUnauthorizedComponentInstantiationListener |
getUnauthorizedComponentInstantiationListener()
|
IExceptionSettings.UnexpectedExceptionDisplay |
getUnexpectedExceptionDisplay()
|
boolean |
getUseDefaultOnMissingResource()
|
java.lang.String |
getVersion()
Gets the Wicket version. |
boolean |
getVersionPagesByDefault()
|
boolean |
isAjaxDebugModeEnabled()
Returns status of ajax debug mode. |
void |
setAccessDeniedPage(java.lang.Class accessDeniedPage)
Sets the access denied page class. |
void |
setAjaxDebugModeEnabled(boolean enable)
Enables or disables ajax debug mode. |
void |
setAuthorizationStrategy(IAuthorizationStrategy strategy)
Sets the authorization strategy. |
void |
setAutomaticLinking(boolean automaticLinking)
Application default for automatic link resolution. |
void |
setAutomaticMultiWindowSupport(boolean automaticMultiWindowSupport)
Sets whether Wicket should try to support opening multiple windows for the same session transparently. |
void |
setBufferResponse(boolean bufferResponse)
|
void |
setClassResolver(IClassResolver defaultClassResolver)
Sets the default class resolver to use when finding classes. |
void |
setComponentUseCheck(boolean componentUseCheck)
Sets componentUseCheck debug settings |
void |
setCompressWhitespace(boolean compressWhitespace)
Turns on whitespace compression. |
void |
setContextPath(java.lang.String contextPath)
Sets context path to use for absolute path generation. |
void |
setConverterFactory(IConverterFactory factory)
Sets converter factory |
void |
setCookieValuePersisterSettings(CookieValuePersisterSettings cookieValuePersisterSettings)
|
void |
setCryptFactory(ICryptFactory cryptFactory)
Sets the factory that will be used to create crypt objects. |
void |
setDefaultAfterDisabledLink(java.lang.String defaultAfterDisabledLink)
|
void |
setDefaultBeforeDisabledLink(java.lang.String defaultBeforeDisabledLink)
|
void |
setDefaultLocale(java.util.Locale defaultLocale)
|
void |
setDefaultMarkupEncoding(java.lang.String encoding)
Set default encoding for markup files. |
void |
setGatherExtendedBrowserInfo(boolean gatherExtendedBrowserInfo)
Sets whether Wicket should try to get extensive client info by redirecting to a page that polls for client capabilities. |
void |
setInternalErrorPage(java.lang.Class internalErrorPage)
Sets internal error page class. |
void |
setMarkupParserFactory(IMarkupParserFactory factory)
Sets the markup parser factory that will be used to generate parsers for markup. |
void |
setMaxPageMaps(int maxPageMaps)
Sets maximum number of page maps allowed in this session |
void |
setMaxPageVersions(int maxPageVersions)
|
void |
setPackageResourceGuard(IPackageResourceGuard packageResourceGuard)
Sets the package resource guard. |
void |
setPageExpiredErrorPage(java.lang.Class pageExpiredErrorPage)
Sets the page expired page class. |
void |
setPageFactory(IPageFactory defaultPageFactory)
Sets the factory to be used when creating pages. |
void |
setPageMapEvictionStrategy(IPageMapEvictionStrategy pageMapEvictionStrategy)
Sets the strategy for evicting pages from the page map. |
void |
setPropertiesFactory(IPropertiesFactory factory)
Set the property factory which will be used to load property files |
void |
setRenderStrategy(IRequestCycleSettings.RenderStrategy renderStrategy)
Sets in what way the render part of a request is handled. |
void |
setResourceFinder(IResourceFinder resourceFinder)
Sets the finder to use when searching for resources. |
void |
setResourcePollFrequency(Duration resourcePollFrequency)
Sets the resource polling frequency. |
void |
setResourceStreamLocator(IResourceStreamLocator resourceStreamLocator)
Sets the resource stream locator for this application |
void |
setResponseRequestEncoding(java.lang.String responseRequestEncoding)
In order to do proper form parameter decoding it is important that the response and the following request have the same encoding. |
void |
setSerializeSessionAttributes(boolean serialize)
Sets the seriaalize session attributes setting |
void |
setStripComments(boolean stripComments)
Enables stripping of markup comments denoted in markup by HTML comment tagging. |
void |
setStripWicketTags(boolean stripWicketTags)
Sets whether to remove wicket tags from the output. |
void |
setStripXmlDeclarationFromOutput(boolean strip)
|
void |
setThrowExceptionOnMissingResource(boolean throwExceptionOnMissingResource)
|
void |
setTimeout(Duration timeout)
Sets the time that a request will by default be waiting for the previous request to be handled before giving up. |
void |
setUnauthorizedComponentInstantiationListener(IUnauthorizedComponentInstantiationListener unauthorizedComponentInstantiationListener)
|
void |
setUnexpectedExceptionDisplay(IExceptionSettings.UnexpectedExceptionDisplay unexpectedExceptionDisplay)
The exception display type determines how the framework displays exceptions to you as a developer or user. |
void |
setUseDefaultOnMissingResource(boolean useDefaultOnMissingResource)
|
void |
setVersionPagesByDefault(boolean pagesVersionedByDefault)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Settings(Application application)
application - The application that these settings are for| Method Detail |
|---|
public void addComponentResolver(IComponentResolver resolver)
IPageSettings
addComponentResolver in interface IPageSettingsresolver - The IComponentResolver that is addedIPageSettings.addComponentResolver(wicket.markup.resolver.IComponentResolver)
public void addResourceFactory(java.lang.String name,
IResourceFactory resourceFactory)
IResourceSettings
addResourceFactory in interface IResourceSettingsname - The name to give to the factoryresourceFactory - The resource factory to addIResourceSettings.addResourceFactory(java.lang.String,
wicket.IResourceFactory)public void addResourceFolder(java.lang.String resourceFolder)
IResourceSettings
addResourceFolder in interface IResourceSettingsresourceFolder - The resourceFolder to setIResourceSettings.addResourceFolder(java.lang.String)public void addResponseFilter(IResponseFilter responseFilter)
IRequestCycleSettings
addResponseFilter in interface IRequestCycleSettingsresponseFilter - The IResponseFilter that is addedIRequestCycleSettings.addResponseFilter(wicket.IResponseFilter)public void addStringResourceLoader(IStringResourceLoader loader)
IResourceSettings
addStringResourceLoader in interface IResourceSettingsloader - The loader to be addedIResourceSettings.addStringResourceLoader(wicket.resource.loader.IStringResourceLoader)public java.lang.Class getAccessDeniedPage()
IApplicationSettings
getAccessDeniedPage in interface IApplicationSettingsIApplicationSettings.getAccessDeniedPage()public IAuthorizationStrategy getAuthorizationStrategy()
ISecuritySettings
getAuthorizationStrategy in interface ISecuritySettingsISecuritySettings.getAuthorizationStrategy()public boolean getAutomaticLinking()
IMarkupSettings
getAutomaticLinking in interface IMarkupSettingsIMarkupSettings.getAutomaticLinking()public boolean getAutomaticMultiWindowSupport()
IPageSettings
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.
getAutomaticMultiWindowSupport in interface IPageSettingsIPageSettings.getAutomaticMultiWindowSupport()public boolean getBufferResponse()
getBufferResponse in interface IRequestCycleSettingsIRequestCycleSettings.getBufferResponse()public IClassResolver getClassResolver()
IApplicationSettings
getClassResolver in interface IApplicationSettingsIApplicationSettings.getClassResolver()public java.util.List getComponentResolvers()
getComponentResolvers in interface IPageSettingsfor an examplepublic boolean getComponentUseCheck()
getComponentUseCheck in interface IDebugSettingsIDebugSettings.getComponentUseCheck()public boolean getCompressWhitespace()
getCompressWhitespace in interface IMarkupSettingsIMarkupSettings.getCompressWhitespace()public java.lang.String getContextPath()
IApplicationSettings
appserver.com/context mapped to webserver/ (context path should be '/')
getContextPath in interface IApplicationSettingsIApplicationSettings.getContextPath()public IConverterFactory getConverterFactory()
IApplicationSettings
getConverterFactory in interface IApplicationSettingsIApplicationSettings.getConverterFactory()public CookieValuePersisterSettings getCookieValuePersisterSettings()
ISecuritySettings
getCookieValuePersisterSettings in interface ISecuritySettingsISecuritySettings.getCookieValuePersisterSettings()public ICryptFactory getCryptFactory()
getCryptFactory in interface ISecuritySettingsISecuritySettings.getCryptFactory()public java.lang.String getDefaultAfterDisabledLink()
getDefaultAfterDisabledLink in interface IMarkupSettingsIMarkupSettings.getDefaultAfterDisabledLink()public java.lang.String getDefaultBeforeDisabledLink()
getDefaultBeforeDisabledLink in interface IMarkupSettingsIMarkupSettings.getDefaultBeforeDisabledLink()public java.util.Locale getDefaultLocale()
getDefaultLocale in interface IApplicationSettingsgetDefaultLocale in interface IResourceSettingsIApplicationSettings.getDefaultLocale()public java.lang.String getDefaultMarkupEncoding()
getDefaultMarkupEncoding in interface IMarkupSettingsIMarkupSettings.getDefaultMarkupEncoding()public boolean getGatherExtendedBrowserInfo()
IRequestCycleSettingsa page that polls for client capabilities. This
method is used by the default implementation of
WebRequestCycle.newClientInfo(), so if that method is overriden,
there is no guarantee this method will be taken into account.
getGatherExtendedBrowserInfo in interface IRequestCycleSettingsIRequestCycleSettings.getGatherExtendedBrowserInfo()public java.lang.Class getInternalErrorPage()
IApplicationSettings
getInternalErrorPage in interface IApplicationSettingsIApplicationSettings.getInternalErrorPage()public Localizer getLocalizer()
IResourceSettings
getLocalizer in interface IResourceSettingsIResourceSettings.getLocalizer()public IMarkupParserFactory getMarkupParserFactory()
getMarkupParserFactory in interface IMarkupSettingsIMarkupSettings.getMarkupParserFactory()public final int getMaxPageMaps()
ISessionSettings
getMaxPageMaps in interface ISessionSettingsISessionSettings.getMaxPageMaps()public int getMaxPageVersions()
getMaxPageVersions in interface IPageSettingsIPageSettings.getMaxPageVersions()public IPackageResourceGuard getPackageResourceGuard()
IResourceSettingspackage resource guard.
getPackageResourceGuard in interface IResourceSettingsIResourceSettings.getPackageResourceGuard()public java.lang.Class getPageExpiredErrorPage()
IApplicationSettings
getPageExpiredErrorPage in interface IApplicationSettingsIApplicationSettings.getPageExpiredErrorPage()public IPageFactory getPageFactory()
ISessionSettings
getPageFactory in interface ISessionSettingsISessionSettings.getPageFactory()public IPageMapEvictionStrategy getPageMapEvictionStrategy()
ISessionSettings
getPageMapEvictionStrategy in interface ISessionSettingsISessionSettings.getPageMapEvictionStrategy()public IPropertiesFactory getPropertiesFactory()
IResourceSettings
getPropertiesFactory in interface IResourceSettingsIResourceSettings.getPropertiesFactory()public IRequestCycleSettings.RenderStrategy getRenderStrategy()
IRequestCycleSettings
getRenderStrategy in interface IRequestCycleSettingsIRequestCycleSettings.getRenderStrategy()public IResourceFactory getResourceFactory(java.lang.String name)
getResourceFactory in interface IResourceSettingsname - Name of the factory to get
IResourceSettings.getResourceFactory(java.lang.String)public IResourceFinder getResourceFinder()
IResourceSettings
getResourceFinder in interface IResourceSettingsIResourceSettings.getResourceFinder()public Duration getResourcePollFrequency()
getResourcePollFrequency in interface IResourceSettingsIResourceSettings.getResourcePollFrequency()public IResourceStreamLocator getResourceStreamLocator()
getResourceStreamLocator in interface IResourceSettingsIResourceSettings.getResourceStreamLocator()public ModificationWatcher getResourceWatcher()
getResourceWatcher in interface IResourceSettingsIResourceSettings.getResourceWatcher()public java.util.List getResponseFilters()
getResponseFilters in interface IRequestCycleSettingsIRequestCycleSettings.getResponseFilters()public java.lang.String getResponseRequestEncoding()
IRequestCycleSettings
getResponseRequestEncoding in interface IRequestCycleSettingsIRequestCycleSettings.getResponseRequestEncoding()public boolean getSerializeSessionAttributes()
getSerializeSessionAttributes in interface IDebugSettingsIDebugSettings.getSerializeSessionAttributes()public java.util.List getStringResourceLoaders()
getStringResourceLoaders in interface IResourceSettingsIResourceSettings.getStringResourceLoaders()public boolean getStripComments()
getStripComments in interface IMarkupSettingsIMarkupSettings.getStripComments()public boolean getStripWicketTags()
IMarkupSettings
getStripWicketTags in interface IMarkupSettingsIMarkupSettings.getStripWicketTags()public boolean getStripXmlDeclarationFromOutput()
getStripXmlDeclarationFromOutput in interface IMarkupSettingsIMarkupSettings.getStripXmlDeclarationFromOutput()public boolean getThrowExceptionOnMissingResource()
getThrowExceptionOnMissingResource in interface IExceptionSettingsgetThrowExceptionOnMissingResource in interface IResourceSettingsIResourceSettings.getThrowExceptionOnMissingResource()public Duration getTimeout()
IRequestCycleSettings
getTimeout in interface IRequestCycleSettingsIRequestCycleSettings.getTimeout()public IUnauthorizedComponentInstantiationListener getUnauthorizedComponentInstantiationListener()
getUnauthorizedComponentInstantiationListener in interface ISecuritySettingsISecuritySettings.getUnauthorizedComponentInstantiationListener()public IExceptionSettings.UnexpectedExceptionDisplay getUnexpectedExceptionDisplay()
getUnexpectedExceptionDisplay in interface IExceptionSettingsgetUnexpectedExceptionDisplay in interface IRequestCycleSettingsIRequestCycleSettings.getUnexpectedExceptionDisplay()public boolean getUseDefaultOnMissingResource()
getUseDefaultOnMissingResource in interface IResourceSettingsIResourceSettings.getUseDefaultOnMissingResource()public java.lang.String getVersion()
IFrameworkSettings
getVersion in interface IFrameworkSettingsIFrameworkSettings.getVersion()public boolean getVersionPagesByDefault()
getVersionPagesByDefault in interface IPageSettingsIPageSettings.getVersionPagesByDefault()public boolean isAjaxDebugModeEnabled()
IDebugSettingsIAjaxSettings for details
isAjaxDebugModeEnabled in interface IAjaxSettingsisAjaxDebugModeEnabled in interface IDebugSettingsIDebugSettings.isAjaxDebugModeEnabled()public void setAccessDeniedPage(java.lang.Class accessDeniedPage)
IApplicationSettings
setAccessDeniedPage in interface IApplicationSettingsaccessDeniedPage - The accessDeniedPage to set.IApplicationSettings.setAccessDeniedPage(java.lang.Class)public void setAjaxDebugModeEnabled(boolean enable)
IAjaxSettings
setAjaxDebugModeEnabled in interface IAjaxSettingssetAjaxDebugModeEnabled in interface IDebugSettingsIDebugSettings.setAjaxDebugModeEnabled(boolean)public void setAuthorizationStrategy(IAuthorizationStrategy strategy)
ISecuritySettings
setAuthorizationStrategy in interface ISecuritySettingsstrategy - new authorization strategyISecuritySettings.setAuthorizationStrategy(wicket.authorization.IAuthorizationStrategy)public void setAutomaticLinking(boolean automaticLinking)
IMarkupSettings
setAutomaticLinking in interface IMarkupSettingsautomaticLinking - The automaticLinking to set.IMarkupSettings.setAutomaticLinking(boolean)public void setAutomaticMultiWindowSupport(boolean automaticMultiWindowSupport)
IPageSettings
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.
setAutomaticMultiWindowSupport in interface IPageSettingsautomaticMultiWindowSupport - Whether Wicket should try to support multiple windows
transparentlyIPageSettings.setAutomaticMultiWindowSupport(boolean)public void setBufferResponse(boolean bufferResponse)
setBufferResponse in interface IRequestCycleSettingsbufferResponse - True if this application should buffer responses.IRequestCycleSettings.setBufferResponse(boolean)public void setClassResolver(IClassResolver defaultClassResolver)
IApplicationSettings
setClassResolver in interface IApplicationSettingsdefaultClassResolver - The default class resolverIApplicationSettings.setClassResolver(wicket.application.IClassResolver)public void setComponentUseCheck(boolean componentUseCheck)
IDebugSettings
setComponentUseCheck in interface IDebugSettingsIDebugSettings.setComponentUseCheck(boolean)public void setCompressWhitespace(boolean compressWhitespace)
IMarkupSettingsCompression is currently not HTML aware and so it may be possible for whitespace compression to break pages. For this reason, whitespace compression is off by default and you should test your application throroughly after turning whitespace compression on.
Spaces are removed from markup at markup load time and there should be no effect on page rendering speed. In fact, your pages should render faster with whitespace compression enabled.
setCompressWhitespace in interface IMarkupSettingscompressWhitespace - The compressWhitespace to set.IMarkupSettings.setCompressWhitespace(boolean)public void setContextPath(java.lang.String contextPath)
IApplicationSettings
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()
setContextPath in interface IApplicationSettingscontextPath - The context path to use.IApplicationSettings.setContextPath(java.lang.String)public void setConverterFactory(IConverterFactory factory)
IApplicationSettings
setConverterFactory in interface IApplicationSettingsfactory - new factoryIApplicationSettings.setConverterFactory(wicket.util.convert.IConverterFactory)public void setCookieValuePersisterSettings(CookieValuePersisterSettings cookieValuePersisterSettings)
setCookieValuePersisterSettings in interface ISecuritySettingscookieValuePersisterSettings - The cookieValuePersisterSettings to set.ISecuritySettings.setCookieValuePersisterSettings(wicket.markup.html.form.persistence.CookieValuePersisterSettings)public void setCryptFactory(ICryptFactory cryptFactory)
ISecuritySettings
setCryptFactory in interface ISecuritySettingsISecuritySettings.setCryptFactory(wicket.util.crypt.ICryptFactory)public void setDefaultAfterDisabledLink(java.lang.String defaultAfterDisabledLink)
setDefaultAfterDisabledLink in interface IMarkupSettingsdefaultAfterDisabledLink - The defaultAfterDisabledLink to set.IMarkupSettings.setDefaultAfterDisabledLink(java.lang.String)public void setDefaultBeforeDisabledLink(java.lang.String defaultBeforeDisabledLink)
setDefaultBeforeDisabledLink in interface IMarkupSettingsdefaultBeforeDisabledLink - The defaultBeforeDisabledLink to set.IMarkupSettings.setDefaultBeforeDisabledLink(java.lang.String)public void setDefaultLocale(java.util.Locale defaultLocale)
setDefaultLocale in interface IApplicationSettingssetDefaultLocale in interface IResourceSettingsdefaultLocale - The defaultLocale to set.IApplicationSettings.setDefaultLocale(java.util.Locale)public void setDefaultMarkupEncoding(java.lang.String encoding)
IMarkupSettings
setDefaultMarkupEncoding in interface IMarkupSettingsIMarkupSettings.setDefaultMarkupEncoding(java.lang.String)public void setGatherExtendedBrowserInfo(boolean gatherExtendedBrowserInfo)
IRequestCycleSettingsa page that polls for client capabilities. This
method is used by the default implementation of
WebRequestCycle.newClientInfo(), so if that method is overriden,
there is no guarantee this method will be taken into account.
setGatherExtendedBrowserInfo in interface IRequestCycleSettingsgatherExtendedBrowserInfo - Whether to gather extensive client infoIRequestCycleSettings.setGatherExtendedBrowserInfo(boolean)public void setInternalErrorPage(java.lang.Class internalErrorPage)
IApplicationSettings
setInternalErrorPage in interface IApplicationSettingsinternalErrorPage - The internalErrorPage to set.IApplicationSettings.setInternalErrorPage(java.lang.Class)public void setMarkupParserFactory(IMarkupParserFactory factory)
IMarkupSettingsMarkupParserFactory will be used.
setMarkupParserFactory in interface IMarkupSettingsfactory - new factoryIMarkupSettings.setMarkupParserFactory(wicket.markup.IMarkupParserFactory)public final void setMaxPageMaps(int maxPageMaps)
ISessionSettings
setMaxPageMaps in interface ISessionSettingsmaxPageMaps - Maximum number of page mapsISessionSettings.setMaxPageMaps(int)public void setMaxPageVersions(int maxPageVersions)
setMaxPageVersions in interface IPageSettingsmaxPageVersions - The maxPageVersion to set.IPageSettings.setMaxPageVersions(int)public void setPackageResourceGuard(IPackageResourceGuard packageResourceGuard)
IResourceSettingspackage resource guard.
setPackageResourceGuard in interface IResourceSettingspackageResourceGuard - The package resource guardIResourceSettings.setPackageResourceGuard(wicket.markup.html.IPackageResourceGuard)public void setPageExpiredErrorPage(java.lang.Class pageExpiredErrorPage)
IApplicationSettings
setPageExpiredErrorPage in interface IApplicationSettingspageExpiredErrorPage - The pageExpiredErrorPage to set.IApplicationSettings.setPageExpiredErrorPage(java.lang.Class)public void setPageFactory(IPageFactory defaultPageFactory)
ISessionSettings
setPageFactory in interface ISessionSettingsdefaultPageFactory - The default factoryISessionSettings.setPageFactory(wicket.IPageFactory)public void setPageMapEvictionStrategy(IPageMapEvictionStrategy pageMapEvictionStrategy)
ISessionSettings
setPageMapEvictionStrategy in interface ISessionSettingspageMapEvictionStrategy - the strategy for evicting pages from the page mapISessionSettings.setPageMapEvictionStrategy(wicket.session.pagemap.IPageMapEvictionStrategy)public void setPropertiesFactory(IPropertiesFactory factory)
IResourceSettings
setPropertiesFactory in interface IResourceSettingswicket.settings.IResourceSettings#setPropertiesFactory(wicket.resource.PropertiesFactory)public void setRenderStrategy(IRequestCycleSettings.RenderStrategy renderStrategy)
IRequestCycleSettings
setRenderStrategy in interface IRequestCycleSettingsrenderStrategy - the render strategy that should be used by default.wicket.settings.IRequestCycleSettings#setRenderStrategy(wicket.settings.Settings.RenderStrategy)public void setResourceFinder(IResourceFinder resourceFinder)
IResourceSettings
setResourceFinder in interface IResourceSettingsresourceFinder - The resourceFinder to setIResourceSettings.setResourceFinder(wicket.util.file.IResourceFinder)public void setResourcePollFrequency(Duration resourcePollFrequency)
IResourceSettings
setResourcePollFrequency in interface IResourceSettingsresourcePollFrequency - Frequency at which to poll resourcesIResourceSettings.setResourcePollFrequency(wicket.util.time.Duration)public void setResourceStreamLocator(IResourceStreamLocator resourceStreamLocator)
IResourceSettings
setResourceStreamLocator in interface IResourceSettingsresourceStreamLocator - new resource stream locatorIResourceSettings.setResourceStreamLocator(wicket.util.resource.locator.IResourceStreamLocator)public void setResponseRequestEncoding(java.lang.String responseRequestEncoding)
IRequestCycleSettings
setResponseRequestEncoding in interface IRequestCycleSettingsresponseRequestEncoding - The request and response encoding to be used.IRequestCycleSettings.setResponseRequestEncoding(java.lang.String)public void setSerializeSessionAttributes(boolean serialize)
IDebugSettings
setSerializeSessionAttributes in interface IDebugSettingsIDebugSettings.setSerializeSessionAttributes(boolean)public void setStripComments(boolean stripComments)
IMarkupSettings
setStripComments in interface IMarkupSettingsstripComments - True to strip markup comments from rendered pagesIMarkupSettings.setStripComments(boolean)public void setStripWicketTags(boolean stripWicketTags)
IMarkupSettings
setStripWicketTags in interface IMarkupSettingsstripWicketTags - whether to remove wicket tags from the outputIMarkupSettings.setStripWicketTags(boolean)public void setStripXmlDeclarationFromOutput(boolean strip)
setStripXmlDeclarationFromOutput in interface IMarkupSettingsstrip - if true, xml declaration will be stripped from outputIMarkupSettings.setStripXmlDeclarationFromOutput(boolean)public void setThrowExceptionOnMissingResource(boolean throwExceptionOnMissingResource)
setThrowExceptionOnMissingResource in interface IExceptionSettingssetThrowExceptionOnMissingResource in interface IResourceSettingsthrowExceptionOnMissingResource - Whether to throw an exception when a missing resource is
requestedIResourceSettings.setThrowExceptionOnMissingResource(boolean)public void setTimeout(Duration timeout)
IRequestCycleSettings
setTimeout in interface IRequestCycleSettingsIRequestCycleSettings.setTimeout(wicket.util.time.Duration)public void setUnauthorizedComponentInstantiationListener(IUnauthorizedComponentInstantiationListener unauthorizedComponentInstantiationListener)
setUnauthorizedComponentInstantiationListener in interface ISecuritySettingsunauthorizedComponentInstantiationListener - The listener to setISecuritySettings.setUnauthorizedComponentInstantiationListener(wicket.authorization.IUnauthorizedComponentInstantiationListener)public void setUnexpectedExceptionDisplay(IExceptionSettings.UnexpectedExceptionDisplay unexpectedExceptionDisplay)
IExceptionSettingsThe default value for exception display type is SHOW_EXCEPTION_PAGE. When this value is set and an unhandled runtime exception is thrown by a page, a redirect to a helpful exception display page will occur.
This is a developer feature, however, and you may want to instead show an internal error page without developer details that allows a user to start over at the application's home page. This can be accomplished by setting the exception display type to SHOW_INTERNAL_ERROR_PAGE.
Finally, if you are having trouble with the exception display pages themselves, you can disable exception displaying entirely with the value SHOW_NO_EXCEPTION_PAGE. This will cause the framework to re-throw any unhandled runtime exceptions after wrapping them in a ServletException wrapper.
setUnexpectedExceptionDisplay in interface IExceptionSettingssetUnexpectedExceptionDisplay in interface IRequestCycleSettingsunexpectedExceptionDisplay - The unexpectedExceptionDisplay to set.wicket.settings.IRequestCycleSettings#setUnexpectedExceptionDisplay(wicket.settings.Settings.UnexpectedExceptionDisplay)public void setUseDefaultOnMissingResource(boolean useDefaultOnMissingResource)
setUseDefaultOnMissingResource in interface IResourceSettingsuseDefaultOnMissingResource - Whether to use a default value (if available) when a missing
resource is requestedIResourceSettings.setUseDefaultOnMissingResource(boolean)public void setVersionPagesByDefault(boolean pagesVersionedByDefault)
setVersionPagesByDefault in interface IPageSettingspagesVersionedByDefault - The pagesVersionedByDefault to set.IPageSettings.setVersionPagesByDefault(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||