|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.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 org.apache.wicket.settings.IExceptionSettings |
---|
IExceptionSettings.AjaxErrorStrategy, IExceptionSettings.UnexpectedExceptionDisplay |
Nested classes/interfaces inherited from interface org.apache.wicket.settings.IRequestCycleSettings |
---|
IRequestCycleSettings.RenderStrategy |
Field Summary |
---|
Fields inherited from interface org.apache.wicket.settings.IExceptionSettings |
---|
SHOW_EXCEPTION_PAGE, SHOW_INTERNAL_ERROR_PAGE, SHOW_NO_EXCEPTION_PAGE |
Fields inherited from interface org.apache.wicket.settings.ISecuritySettings |
---|
DEFAULT_ENCRYPTION_KEY |
Constructor Summary | |
---|---|
Settings(Object application)
Create the application settings, carrying out any necessary initializations. |
Method Summary | ||
---|---|---|
void |
addComponentResolver(IComponentResolver resolver)
Adds a component resolver to the list. |
|
void |
addResourceFactory(String name,
IResourceFactory resourceFactory)
Adds a resource factory to the list of factories to consult when generating resources automatically |
|
void |
addResourceFolder(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(int index,
IStringResourceLoader loader)
Add a string resource loader to the chain of loaders. |
|
void |
addStringResourceLoader(IStringResourceLoader loader)
Add a string resource loader to the chain of loaders. |
|
Class<? extends Page> |
getAccessDeniedPage()
Gets the access denied page class. |
|
IExceptionSettings.AjaxErrorStrategy |
getAjaxErrorHandlingStrategy()
|
|
IAuthenticationStrategy |
getAuthenticationStrategy()
Gets the authentication strategy. |
|
IAuthorizationStrategy |
getAuthorizationStrategy()
Gets the authorization strategy. |
|
boolean |
getAutomaticLinking()
If true, automatic link resolution is enabled. |
|
boolean |
getBufferResponse()
|
|
IClassResolver |
getClassResolver()
Gets the default resolver to use when finding classes and resources |
|
List<IComponentResolver> |
getComponentResolvers()
Get the (modifiable) list of IComponentResolvers. |
|
boolean |
getComponentUseCheck()
|
|
boolean |
getCompressWhitespace()
|
|
ICryptFactory |
getCryptFactory()
|
|
String |
getDefaultAfterDisabledLink()
|
|
String |
getDefaultBeforeDisabledLink()
|
|
Duration |
getDefaultCacheDuration()
Get the the default cache duration for resources. |
|
String |
getDefaultMarkupEncoding()
|
|
Bytes |
getDefaultMaximumUploadSize()
Gets the default maximum size for uploads. |
|
IDetachListener |
getDetachListener()
|
|
boolean |
getDisableGZipCompression()
Whether to disable gzip compression for resources. |
|
boolean |
getEnforceMounts()
Gets whether mounts should be enforced. |
|
boolean |
getGatherExtendedBrowserInfo()
Gets whether Wicket should try to get extensive client info by redirecting to a page that polls for client capabilities . |
|
Class<? extends Page> |
getInternalErrorPage()
Gets internal error page class. |
|
IJavascriptCompressor |
getJavascriptCompressor()
Get the javascript compressor to remove comments and whitespace characters from javascripts |
|
Localizer |
getLocalizer()
Get the application's localizer. |
|
MarkupFactory |
getMarkupFactory()
Get the markup factory |
|
IPackageResourceGuard |
getPackageResourceGuard()
Gets the package resource guard . |
|
Class<? extends Page> |
getPageExpiredErrorPage()
Gets the page expired page class. |
|
IPageFactory |
getPageFactory()
Gets the factory to be used when creating pages |
|
String |
getParentFolderPlaceholder()
Placeholder string for '..' within resource urls (which will be crippled by the browser and not work anymore). |
|
IPropertiesFactory |
getPropertiesFactory()
Get the property factory which will be used to load property files |
|
boolean |
getRecordSessionSize()
|
|
IRequestCycleSettings.RenderStrategy |
getRenderStrategy()
Gets in what way the render part of a request is handled. |
|
int |
getRequestsWindowSize()
|
|
IResourceFactory |
getResourceFactory(String name)
|
|
IResourceFinder |
getResourceFinder()
Gets the resource finder to use when searching for resources. |
|
Duration |
getResourcePollFrequency()
|
|
IResourceStreamLocator |
getResourceStreamLocator()
|
|
IModificationWatcher |
getResourceWatcher(boolean start)
|
|
List<IResponseFilter> |
getResponseFilters()
|
|
String |
getResponseRequestEncoding()
In order to do proper form parameter decoding it is important that the response and the following request have the same encoding. |
|
List<IStringResourceLoader> |
getStringResourceLoaders()
|
|
boolean |
getStripComments()
|
|
boolean |
getStripWicketTags()
Gets whether to remove wicket tags from the output. |
|
boolean |
getStripXmlDeclarationFromOutput()
|
|
boolean |
getThrowExceptionOnMissingResource()
|
|
boolean |
getThrowExceptionOnMissingXmlDeclaration()
|
|
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()
|
|
boolean |
getUseTimestampOnResources()
Control the usage of timestamps on resources Normally the resource names won't change when the resource ifself changes, for example when you add a new style to your CSS sheet. |
|
String |
getVersion()
Gets the Wicket version. |
|
boolean |
getVersionPagesByDefault()
|
|
boolean |
isAjaxDebugModeEnabled()
Returns status of ajax debug mode. |
|
boolean |
isDevelopmentUtilitiesEnabled()
Are all of the panels and pages, etc, from wicket-devutils package enabled? |
|
boolean |
isLinePreciseReportingOnAddComponentEnabled()
Returns status of line precise error reporting for added components that are not present in the markup: it points to the line where the component was added to the hierarchy in your Java classes. |
|
boolean |
isLinePreciseReportingOnNewComponentEnabled()
Returns status of line precise error reporting for new components that are not present in the markup: it points to the line where the component was created in your Java classes. |
|
boolean |
isOutputComponentPath()
|
|
boolean |
isOutputMarkupContainerClassName()
Returns whether the output of markup container's should be wrapped by comments containing the container's class name. |
|
boolean |
isPageIdUniquePerSession()
Returns whether the page id is unique per session. |
|
boolean |
isRequestLoggerEnabled()
|
|
|
setAccessDeniedPage(Class<C> accessDeniedPage)
Sets the access denied page class. |
|
void |
setAjaxDebugModeEnabled(boolean enable)
Enables or disables ajax debug mode. |
|
void |
setAjaxErrorHandlingStrategy(IExceptionSettings.AjaxErrorStrategy errorHandlingStrategyDuringAjaxRequests)
Sets strategy used to handle errors during Ajax request processing |
|
void |
setAuthenticationStrategy(IAuthenticationStrategy strategy)
Sets the authentication strategy. |
|
void |
setAuthorizationStrategy(IAuthorizationStrategy strategy)
Sets the authorization strategy. |
|
void |
setAutomaticLinking(boolean automaticLinking)
Application default for automatic link resolution. |
|
void |
setBufferResponse(boolean bufferResponse)
|
|
void |
setClassResolver(IClassResolver defaultClassResolver)
Sets the default class resolver to use when finding classes and resources |
|
void |
setComponentUseCheck(boolean componentUseCheck)
Sets componentUseCheck debug settings |
|
void |
setCompressWhitespace(boolean compressWhitespace)
Turns on whitespace compression. |
|
void |
setCryptFactory(ICryptFactory cryptFactory)
Sets the factory that will be used to create crypt objects. |
|
void |
setDefaultAfterDisabledLink(String defaultAfterDisabledLink)
|
|
void |
setDefaultBeforeDisabledLink(String defaultBeforeDisabledLink)
|
|
void |
setDefaultCacheDuration(Duration duration)
Set the the default cache duration for resources. |
|
void |
setDefaultMarkupEncoding(String encoding)
Set default encoding for markup files. |
|
void |
setDefaultMaximumUploadSize(Bytes defaultMaximumUploadSize)
Sets the default maximum size for uploads. |
|
void |
setDetachListener(IDetachListener detachListener)
Sets detach listener |
|
void |
setDevelopmentUtilitiesEnabled(boolean enable)
Enables all of the panels and pages, etc, from wicket-devutils package. |
|
void |
setDisableGZipCompression(boolean disableGZipCompression)
Sets whether to disable gzip compression for resources. |
|
void |
setEnforceMounts(boolean enforce)
Sets whether mounts should be enforced. |
|
void |
setGatherExtendedBrowserInfo(boolean gatherExtendedBrowserInfo)
Sets whether Wicket should try to get extensive client info by redirecting to a page that polls for client capabilities . |
|
|
setInternalErrorPage(Class<C> internalErrorPage)
Sets internal error page class. |
|
IJavascriptCompressor |
setJavascriptCompressor(IJavascriptCompressor compressor)
Set the javascript compressor implemententation use e.g. |
|
void |
setLinePreciseReportingOnAddComponentEnabled(boolean enable)
Enables line precise error reporting for added components that are not present in the markup: it points to the line where the component was added to the hierarchy in your Java classes. |
|
void |
setLinePreciseReportingOnNewComponentEnabled(boolean enable)
Enables line precise error reporting for new components that are not present in the markup: it points to the line where the component was created in your Java classes. |
|
void |
setLocalizer(Localizer localizer)
Sets the localizer which will be used to find property values. |
|
void |
setMarkupFactory(MarkupFactory factory)
Set a new markup factory |
|
void |
setMaxPageMaps(int maxPageMaps)
Sets maximum number of page maps allowed in this session |
|
void |
setOutputComponentPath(boolean outputComponentPath)
If set to true wicket will output component path in a wicketpath
attribute of the component tag. |
|
void |
setOutputMarkupContainerClassName(boolean enable)
Enables wrapping output of markup container in html comments that contain markup container's class name. |
|
void |
setPackageResourceGuard(IPackageResourceGuard packageResourceGuard)
Sets the package resource guard . |
|
|
setPageExpiredErrorPage(Class<C> pageExpiredErrorPage)
Sets the page expired page class. |
|
void |
setPageFactory(IPageFactory defaultPageFactory)
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 |
setParentFolderPlaceholder(String sequence)
Placeholder string for '..' within resource urls (which will be crippled by the browser and not work anymore). |
|
void |
setPropertiesFactory(IPropertiesFactory factory)
Set the property factory which will be used to load property files |
|
void |
setRecordSessionSize(boolean record)
Enable/Disable the recording of the session size for every request. |
|
void |
setRenderStrategy(IRequestCycleSettings.RenderStrategy renderStrategy)
Sets in what way the render part of a request is handled. |
|
void |
setRequestLoggerEnabled(boolean enable)
Enable/Disable the request logger. |
|
void |
setRequestsWindowSize(int size)
Set the window of all the requests that is kept in memory for viewing. |
|
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 |
setResourceWatcher(IModificationWatcher watcher)
Sets the resource watcher |
|
void |
setResponseRequestEncoding(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 |
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 |
setThrowExceptionOnMissingXmlDeclaration(boolean throwException)
If true, an exception is thrown if the markup file does not contain a xml declaration |
|
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 |
setUseTimestampOnResources(boolean useTimestampOnResourcesName)
Control the usage of timestamps on resources Normally the resource names won't change when the resource ifself changes, for example when you add a new style to your CSS sheet. |
|
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(Object application)
application
- The application that these settings are forMethod Detail |
---|
public void addComponentResolver(IComponentResolver resolver)
IPageSettings
addComponentResolver
in interface IPageSettings
resolver
- The IComponentResolver
that is addedIPageSettings.addComponentResolver(org.apache.wicket.markup.resolver.IComponentResolver)
public void addResourceFactory(String name, IResourceFactory resourceFactory)
IResourceSettings
addResourceFactory
in interface IResourceSettings
name
- The name to give to the factoryresourceFactory
- The resource factory to addIResourceSettings.addResourceFactory(java.lang.String,
org.apache.wicket.IResourceFactory)
public void addResourceFolder(String resourceFolder)
IResourceSettings
addResourceFolder
in interface IResourceSettings
resourceFolder
- The resourceFolder to setIResourceSettings.addResourceFolder(java.lang.String)
public void addResponseFilter(IResponseFilter responseFilter)
IRequestCycleSettings
addResponseFilter
in interface IRequestCycleSettings
responseFilter
- The IResponseFilter
that is addedorg.apache.wicket.settings.IRequestCycleSettings#addResponseFilter(org.apache.wicket.IResponseFilter)
public void addStringResourceLoader(IStringResourceLoader loader)
IResourceSettings
addStringResourceLoader
in interface IResourceSettings
loader
- The loader to be addedIResourceSettings.addStringResourceLoader(org.apache.wicket.resource.loader.IStringResourceLoader)
public void addStringResourceLoader(int index, IStringResourceLoader loader)
IResourceSettings
addStringResourceLoader
in interface IResourceSettings
index
- The position within the array to insert the loaderloader
- The loader to be addedIResourceSettings.addStringResourceLoader(org.apache.wicket.resource.loader.IStringResourceLoader)
public Class<? extends Page> getAccessDeniedPage()
IApplicationSettings
getAccessDeniedPage
in interface IApplicationSettings
IApplicationSettings.getAccessDeniedPage()
public IAuthorizationStrategy getAuthorizationStrategy()
ISecuritySettings
getAuthorizationStrategy
in interface ISecuritySettings
ISecuritySettings.getAuthorizationStrategy()
public boolean getAutomaticLinking()
IMarkupSettings
getAutomaticLinking
in interface IMarkupSettings
IMarkupSettings.getAutomaticLinking()
public boolean getBufferResponse()
getBufferResponse
in interface IRequestCycleSettings
IRequestCycleSettings.getBufferResponse()
public IClassResolver getClassResolver()
IApplicationSettings
getClassResolver
in interface IApplicationSettings
IApplicationSettings.getClassResolver()
public List<IComponentResolver> getComponentResolvers()
getComponentResolvers
in interface IPageSettings
for an example
public boolean getComponentUseCheck()
getComponentUseCheck
in interface IDebugSettings
IDebugSettings.getComponentUseCheck()
public boolean getCompressWhitespace()
getCompressWhitespace
in interface IMarkupSettings
IMarkupSettings.getCompressWhitespace()
public ICryptFactory getCryptFactory()
getCryptFactory
in interface ISecuritySettings
ISecuritySettings.getCryptFactory()
public String getDefaultAfterDisabledLink()
getDefaultAfterDisabledLink
in interface IMarkupSettings
IMarkupSettings.getDefaultAfterDisabledLink()
public String getDefaultBeforeDisabledLink()
getDefaultBeforeDisabledLink
in interface IMarkupSettings
IMarkupSettings.getDefaultBeforeDisabledLink()
public String getDefaultMarkupEncoding()
getDefaultMarkupEncoding
in interface IMarkupSettings
IMarkupSettings.getDefaultMarkupEncoding()
public boolean getDisableGZipCompression()
IResourceSettings
getDisableGZipCompression
in interface IResourceSettings
IResourceSettings.getDisableGZipCompression()
public boolean getEnforceMounts()
ISecuritySettings
getEnforceMounts
in interface ISecuritySettings
ISecuritySettings.getEnforceMounts()
public boolean getGatherExtendedBrowserInfo()
IRequestCycleSettings
a page that polls for client capabilities
. This method is used by the
default implementation of WebRequestCycle#newClientInfo()
, so if that method is
overridden, there is no guarantee this method will be taken into account.
getGatherExtendedBrowserInfo
in interface IRequestCycleSettings
IRequestCycleSettings.getGatherExtendedBrowserInfo()
public Class<? extends Page> getInternalErrorPage()
IApplicationSettings
getInternalErrorPage
in interface IApplicationSettings
IApplicationSettings.getInternalErrorPage()
public Localizer getLocalizer()
IResourceSettings
getLocalizer
in interface IResourceSettings
IResourceSettings.getLocalizer()
public void setLocalizer(Localizer localizer)
IResourceSettings
setLocalizer
in interface IResourceSettings
IResourceSettings.setLocalizer(org.apache.wicket.Localizer)
public IPackageResourceGuard getPackageResourceGuard()
IResourceSettings
package resource guard
.
getPackageResourceGuard
in interface IResourceSettings
IResourceSettings.getPackageResourceGuard()
public Class<? extends Page> getPageExpiredErrorPage()
IApplicationSettings
getPageExpiredErrorPage
in interface IApplicationSettings
IApplicationSettings.getPageExpiredErrorPage()
public IPageFactory getPageFactory()
ISessionSettings
getPageFactory
in interface ISessionSettings
ISessionSettings.getPageFactory()
public IPropertiesFactory getPropertiesFactory()
IResourceSettings
getPropertiesFactory
in interface IResourceSettings
IResourceSettings.getPropertiesFactory()
public IRequestCycleSettings.RenderStrategy getRenderStrategy()
IRequestCycleSettings
getRenderStrategy
in interface IRequestCycleSettings
IRequestCycleSettings.getRenderStrategy()
public IResourceFactory getResourceFactory(String name)
getResourceFactory
in interface IResourceSettings
name
- Name of the factory to get
IResourceSettings.getResourceFactory(java.lang.String)
public IResourceFinder getResourceFinder()
IResourceSettings
getResourceFinder
in interface IResourceSettings
IResourceSettings.getResourceFinder()
public Duration getResourcePollFrequency()
getResourcePollFrequency
in interface IResourceSettings
IResourceSettings.getResourcePollFrequency()
public IResourceStreamLocator getResourceStreamLocator()
getResourceStreamLocator
in interface IResourceSettings
IResourceSettings.getResourceStreamLocator()
public IModificationWatcher getResourceWatcher(boolean start)
getResourceWatcher
in interface IResourceSettings
start
- boolean if the resource watcher should be started if not already started.
IResourceSettings.getResourceWatcher(boolean)
public List<IResponseFilter> getResponseFilters()
getResponseFilters
in interface IRequestCycleSettings
IRequestCycleSettings.getResponseFilters()
public String getResponseRequestEncoding()
IRequestCycleSettings
getResponseRequestEncoding
in interface IRequestCycleSettings
IRequestCycleSettings.getResponseRequestEncoding()
public List<IStringResourceLoader> getStringResourceLoaders()
getStringResourceLoaders
in interface IResourceSettings
IResourceSettings.getStringResourceLoaders()
public boolean getStripComments()
getStripComments
in interface IMarkupSettings
IMarkupSettings.getStripComments()
public boolean getStripWicketTags()
IMarkupSettings
getStripWicketTags
in interface IMarkupSettings
IMarkupSettings.getStripWicketTags()
public boolean getStripXmlDeclarationFromOutput()
getStripXmlDeclarationFromOutput
in interface IMarkupSettings
IMarkupSettings.getStripXmlDeclarationFromOutput()
public boolean getThrowExceptionOnMissingResource()
getThrowExceptionOnMissingResource
in interface IResourceSettings
IResourceSettings.getThrowExceptionOnMissingResource()
public Duration getTimeout()
IRequestCycleSettings
getTimeout
in interface IRequestCycleSettings
IRequestCycleSettings.getTimeout()
public IUnauthorizedComponentInstantiationListener getUnauthorizedComponentInstantiationListener()
getUnauthorizedComponentInstantiationListener
in interface ISecuritySettings
ISecuritySettings.getUnauthorizedComponentInstantiationListener()
public IExceptionSettings.UnexpectedExceptionDisplay getUnexpectedExceptionDisplay()
getUnexpectedExceptionDisplay
in interface IExceptionSettings
getUnexpectedExceptionDisplay
in interface IRequestCycleSettings
IRequestCycleSettings.getUnexpectedExceptionDisplay()
public boolean getUseDefaultOnMissingResource()
getUseDefaultOnMissingResource
in interface IResourceSettings
IResourceSettings.getUseDefaultOnMissingResource()
public String getVersion()
IFrameworkSettings
getVersion
in interface IFrameworkSettings
IFrameworkSettings.getVersion()
public boolean getVersionPagesByDefault()
getVersionPagesByDefault
in interface IPageSettings
IPageSettings.getVersionPagesByDefault()
public boolean isAjaxDebugModeEnabled()
IDebugSettings
IDebugSettings
for
details
isAjaxDebugModeEnabled
in interface IDebugSettings
IDebugSettings.isAjaxDebugModeEnabled()
public <C extends Page> void setAccessDeniedPage(Class<C> accessDeniedPage)
IApplicationSettings
setAccessDeniedPage
in interface IApplicationSettings
accessDeniedPage
- The accessDeniedPage to set.IApplicationSettings.setAccessDeniedPage(java.lang.Class)
public void setAjaxDebugModeEnabled(boolean enable)
IDebugSettings
IDebugSettings
for details
setAjaxDebugModeEnabled
in interface IDebugSettings
IDebugSettings.setAjaxDebugModeEnabled(boolean)
public void setAuthorizationStrategy(IAuthorizationStrategy strategy)
ISecuritySettings
setAuthorizationStrategy
in interface ISecuritySettings
strategy
- new authorization strategyISecuritySettings.setAuthorizationStrategy(org.apache.wicket.authorization.IAuthorizationStrategy)
public void setAutomaticLinking(boolean automaticLinking)
IMarkupSettings
setAutomaticLinking
in interface IMarkupSettings
automaticLinking
- The automaticLinking to set.IMarkupSettings.setAutomaticLinking(boolean)
public void setBufferResponse(boolean bufferResponse)
setBufferResponse
in interface IRequestCycleSettings
bufferResponse
- True if this application should buffer responses.IRequestCycleSettings.setBufferResponse(boolean)
public void setClassResolver(IClassResolver defaultClassResolver)
IApplicationSettings
setClassResolver
in interface IApplicationSettings
defaultClassResolver
- The default class resolverIApplicationSettings.setClassResolver(org.apache.wicket.application.IClassResolver)
public void setComponentUseCheck(boolean componentUseCheck)
IDebugSettings
setComponentUseCheck
in interface IDebugSettings
IDebugSettings.setComponentUseCheck(boolean)
public void setCompressWhitespace(boolean compressWhitespace)
IMarkupSettings
Compression 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 thoroughly 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 IMarkupSettings
compressWhitespace
- The compressWhitespace to set.IMarkupSettings.setCompressWhitespace(boolean)
public void setCryptFactory(ICryptFactory cryptFactory)
ISecuritySettings
setCryptFactory
in interface ISecuritySettings
ISecuritySettings.setCryptFactory(org.apache.wicket.util.crypt.ICryptFactory)
public void setDefaultAfterDisabledLink(String defaultAfterDisabledLink)
setDefaultAfterDisabledLink
in interface IMarkupSettings
defaultAfterDisabledLink
- The defaultAfterDisabledLink to set.IMarkupSettings.setDefaultAfterDisabledLink(java.lang.String)
public void setDefaultBeforeDisabledLink(String defaultBeforeDisabledLink)
setDefaultBeforeDisabledLink
in interface IMarkupSettings
defaultBeforeDisabledLink
- The defaultBeforeDisabledLink to set.IMarkupSettings.setDefaultBeforeDisabledLink(java.lang.String)
public void setDefaultMarkupEncoding(String encoding)
IMarkupSettings
setDefaultMarkupEncoding
in interface IMarkupSettings
IMarkupSettings.setDefaultMarkupEncoding(java.lang.String)
public void setDisableGZipCompression(boolean disableGZipCompression)
IResourceSettings
setDisableGZipCompression
in interface IResourceSettings
IResourceSettings.setDisableGZipCompression(boolean)
public void setEnforceMounts(boolean enforce)
ISecuritySettings
setEnforceMounts
in interface ISecuritySettings
enforce
- Whether mounts should be enforcedISecuritySettings.setEnforceMounts(boolean)
public void setGatherExtendedBrowserInfo(boolean gatherExtendedBrowserInfo)
IRequestCycleSettings
a page that polls for client capabilities
. This method is used by the
default implementation of WebRequestCycle#newClientInfo()
, so if that method is
overridden, there is no guarantee this method will be taken into account.
WARNING: though this facility should work transparently in most cases, it
is recommended that you trigger the roundtrip to get the browser info somewhere where it
hurts the least. The roundtrip will be triggered the first time you call
Session.getClientInfo()
for a session, and after the roundtrip a new request with the
same info (url, post parameters) is handled. So rather than calling this in the middle of an
implementation of a form submit method, which would result in the code of that method before
the call to Session.getClientInfo()
to be executed twice, you best call
Session.getClientInfo()
e.g. in a page constructor or somewhere else where you didn't
do a lot of processing first.
setGatherExtendedBrowserInfo
in interface IRequestCycleSettings
gatherExtendedBrowserInfo
- Whether to gather extensive client infoIRequestCycleSettings.setGatherExtendedBrowserInfo(boolean)
public <C extends Page> void setInternalErrorPage(Class<C> internalErrorPage)
IApplicationSettings
setInternalErrorPage
in interface IApplicationSettings
internalErrorPage
- The internalErrorPage to set.IApplicationSettings.setInternalErrorPage(java.lang.Class)
public final void setMaxPageMaps(int maxPageMaps)
ISessionSettings
setMaxPageMaps
in interface ISessionSettings
maxPageMaps
- Maximum number of page mapsISessionSettings.setMaxPageMaps(int)
public void setPackageResourceGuard(IPackageResourceGuard packageResourceGuard)
IResourceSettings
package resource guard
.
setPackageResourceGuard
in interface IResourceSettings
packageResourceGuard
- The package resource guardIResourceSettings.setPackageResourceGuard(org.apache.wicket.markup.html.IPackageResourceGuard)
public <C extends Page> void setPageExpiredErrorPage(Class<C> pageExpiredErrorPage)
IApplicationSettings
setPageExpiredErrorPage
in interface IApplicationSettings
pageExpiredErrorPage
- The pageExpiredErrorPage to set.IApplicationSettings.setPageExpiredErrorPage(java.lang.Class)
public void setPageFactory(IPageFactory defaultPageFactory)
ISessionSettings
setPageFactory
in interface ISessionSettings
defaultPageFactory
- The default factoryISessionSettings.setPageFactory(org.apache.wicket.IPageFactory)
public void setPropertiesFactory(IPropertiesFactory factory)
IResourceSettings
setPropertiesFactory
in interface IResourceSettings
IResourceSettings.setPropertiesFactory(org.apache.wicket.resource.IPropertiesFactory)
public void setRenderStrategy(IRequestCycleSettings.RenderStrategy renderStrategy)
IRequestCycleSettings
setRenderStrategy
in interface IRequestCycleSettings
renderStrategy
- the render strategy that should be used by default.org.apache.wicket.settings.IRequestCycleSettings#setRenderStrategy(org.apache.wicket.settings.Settings.RenderStrategy)
public void setResourceFinder(IResourceFinder resourceFinder)
IResourceSettings
setResourceFinder
in interface IResourceSettings
resourceFinder
- The resourceFinder to setIResourceSettings.setResourceFinder(org.apache.wicket.util.file.IResourceFinder)
public void setResourcePollFrequency(Duration resourcePollFrequency)
IResourceSettings
setResourcePollFrequency
in interface IResourceSettings
resourcePollFrequency
- Frequency at which to poll resourcesIResourceSettings.setResourcePollFrequency(org.apache.wicket.util.time.Duration)
public void setResourceStreamLocator(IResourceStreamLocator resourceStreamLocator)
IResourceSettings
setResourceStreamLocator
in interface IResourceSettings
resourceStreamLocator
- new resource stream locatorIResourceSettings.setResourceStreamLocator(org.apache.wicket.util.resource.locator.IResourceStreamLocator)
public void setResourceWatcher(IModificationWatcher watcher)
IResourceSettings
setResourceWatcher
in interface IResourceSettings
IResourceSettings.setResourceWatcher(org.apache.wicket.util.watch.IModificationWatcher)
public void setResponseRequestEncoding(String responseRequestEncoding)
IRequestCycleSettings
setResponseRequestEncoding
in interface IRequestCycleSettings
responseRequestEncoding
- The request and response encoding to be used.IRequestCycleSettings.setResponseRequestEncoding(java.lang.String)
public void setStripComments(boolean stripComments)
IMarkupSettings
setStripComments
in interface IMarkupSettings
stripComments
- True to strip markup comments from rendered pagesIMarkupSettings.setStripComments(boolean)
public void setStripWicketTags(boolean stripWicketTags)
IMarkupSettings
setStripWicketTags
in interface IMarkupSettings
stripWicketTags
- whether to remove wicket tags from the outputIMarkupSettings.setStripWicketTags(boolean)
public void setStripXmlDeclarationFromOutput(boolean strip)
setStripXmlDeclarationFromOutput
in interface IMarkupSettings
strip
- if true, xml declaration will be stripped from outputIMarkupSettings.setStripXmlDeclarationFromOutput(boolean)
public void setThrowExceptionOnMissingResource(boolean throwExceptionOnMissingResource)
setThrowExceptionOnMissingResource
in interface IResourceSettings
IResourceSettings.setThrowExceptionOnMissingResource(boolean)
public void setTimeout(Duration timeout)
IRequestCycleSettings
setTimeout
in interface IRequestCycleSettings
IRequestCycleSettings.setTimeout(org.apache.wicket.util.time.Duration)
public void setUnauthorizedComponentInstantiationListener(IUnauthorizedComponentInstantiationListener unauthorizedComponentInstantiationListener)
setUnauthorizedComponentInstantiationListener
in interface ISecuritySettings
unauthorizedComponentInstantiationListener
- The listener to setISecuritySettings.setUnauthorizedComponentInstantiationListener(org.apache.wicket.authorization.IUnauthorizedComponentInstantiationListener)
public void setUnexpectedExceptionDisplay(IExceptionSettings.UnexpectedExceptionDisplay unexpectedExceptionDisplay)
IExceptionSettings
The 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 IExceptionSettings
setUnexpectedExceptionDisplay
in interface IRequestCycleSettings
unexpectedExceptionDisplay
- The unexpectedExceptionDisplay to set.org.apache.wicket.settings.IRequestCycleSettings#setUnexpectedExceptionDisplay(org.apache.wicket.settings.Settings.UnexpectedExceptionDisplay)
public void setUseDefaultOnMissingResource(boolean useDefaultOnMissingResource)
setUseDefaultOnMissingResource
in interface IResourceSettings
useDefaultOnMissingResource
- Whether to use a default value (if available) when a missing resource is requestedIResourceSettings.setUseDefaultOnMissingResource(boolean)
public void setVersionPagesByDefault(boolean pagesVersionedByDefault)
setVersionPagesByDefault
in interface IPageSettings
pagesVersionedByDefault
- The pagesVersionedByDefault to set.IPageSettings.setVersionPagesByDefault(boolean)
public boolean getRecordSessionSize()
getRecordSessionSize
in interface IRequestLoggerSettings
IRequestLoggerSettings.getRecordSessionSize()
public int getRequestsWindowSize()
getRequestsWindowSize
in interface IRequestLoggerSettings
IRequestLoggerSettings.getRequestsWindowSize()
public boolean isRequestLoggerEnabled()
isRequestLoggerEnabled
in interface IRequestLoggerSettings
IRequestLoggerSettings.isRequestLoggerEnabled()
public void setRecordSessionSize(boolean record)
IRequestLoggerSettings
setRecordSessionSize
in interface IRequestLoggerSettings
IRequestLoggerSettings.setRecordSessionSize(boolean)
public void setRequestLoggerEnabled(boolean enable)
IRequestLoggerSettings
setRequestLoggerEnabled
in interface IRequestLoggerSettings
enable
- boolean.IRequestLoggerSettings.setRequestLoggerEnabled(boolean)
public void setRequestsWindowSize(int size)
IRequestLoggerSettings
setRequestsWindowSize
in interface IRequestLoggerSettings
IRequestLoggerSettings.setRequestsWindowSize(int)
public void setOutputMarkupContainerClassName(boolean enable)
IDebugSettings
setOutputMarkupContainerClassName
in interface IDebugSettings
IDebugSettings.setOutputMarkupContainerClassName(boolean)
public boolean isOutputMarkupContainerClassName()
IDebugSettings
isOutputMarkupContainerClassName
in interface IDebugSettings
IDebugSettings.isOutputMarkupContainerClassName()
public Bytes getDefaultMaximumUploadSize()
IApplicationSettings
Form.getMaxSize()
if no
value is explicitly set through Form.setMaxSize(Bytes)
.
getDefaultMaximumUploadSize
in interface IApplicationSettings
IApplicationSettings.getDefaultMaximumUploadSize()
public void setDefaultMaximumUploadSize(Bytes defaultMaximumUploadSize)
IApplicationSettings
Form.getMaxSize()
if no
value is explicitly set through Form.setMaxSize(Bytes)
.
setDefaultMaximumUploadSize
in interface IApplicationSettings
defaultMaximumUploadSize
- the default maximum size for uploadsIApplicationSettings.setDefaultMaximumUploadSize(org.apache.wicket.util.lang.Bytes)
public void setPageIdUniquePerSession(boolean value)
ISessionSettings
setPageIdUniquePerSession
in interface ISessionSettings
ISessionSettings.setPageIdUniquePerSession(boolean)
public boolean isPageIdUniquePerSession()
ISessionSettings
isPageIdUniquePerSession
in interface ISessionSettings
ISessionSettings.isPageIdUniquePerSession()
public boolean isLinePreciseReportingOnAddComponentEnabled()
IDebugSettings
isLinePreciseReportingOnAddComponentEnabled
in interface IDebugSettings
IDebugSettings.isLinePreciseReportingOnAddComponentEnabled()
public boolean isLinePreciseReportingOnNewComponentEnabled()
IDebugSettings
isLinePreciseReportingOnNewComponentEnabled
in interface IDebugSettings
IDebugSettings.isLinePreciseReportingOnNewComponentEnabled()
public void setLinePreciseReportingOnAddComponentEnabled(boolean enable)
IDebugSettings
setLinePreciseReportingOnAddComponentEnabled
in interface IDebugSettings
IDebugSettings.setLinePreciseReportingOnAddComponentEnabled(boolean)
public void setLinePreciseReportingOnNewComponentEnabled(boolean enable)
IDebugSettings
setLinePreciseReportingOnNewComponentEnabled
in interface IDebugSettings
IDebugSettings.setLinePreciseReportingOnNewComponentEnabled(boolean)
public boolean getThrowExceptionOnMissingXmlDeclaration()
getThrowExceptionOnMissingXmlDeclaration
in interface IMarkupSettings
IMarkupSettings.getThrowExceptionOnMissingXmlDeclaration()
public void setThrowExceptionOnMissingXmlDeclaration(boolean throwException)
IMarkupSettings
setThrowExceptionOnMissingXmlDeclaration
in interface IMarkupSettings
IMarkupSettings.setThrowExceptionOnMissingXmlDeclaration(boolean)
public String getParentFolderPlaceholder()
IResourceSettings
IPackageResourceGuard
implementation such as PackageResourceGuard
which you may use or extend based on your needs.
getParentFolderPlaceholder
in interface IResourceSettings
IResourceSettings.getParentFolderPlaceholder()
public void setParentFolderPlaceholder(String sequence)
IResourceSettings
IPackageResourceGuard
implementation such as PackageResourceGuard
which you may use or extend based on your needs.
setParentFolderPlaceholder
in interface IResourceSettings
sequence
- character sequence which must not be ambiguous within urlsorg.apache.wicket.settings.IResourceSettings#setParentFolderPlaceholder(CharSequence)
public boolean isOutputComponentPath()
isOutputComponentPath
in interface IDebugSettings
true
if output component path feature is enabled, false
otherwiseIDebugSettings.isOutputComponentPath()
public void setOutputComponentPath(boolean outputComponentPath)
IDebugSettings
true
wicket will output component path in a wicketpath
attribute of the component tag. This can be useful for debugging and automating tests.
setOutputComponentPath
in interface IDebugSettings
IDebugSettings#setOutputComponentPath()
public IJavascriptCompressor getJavascriptCompressor()
IResourceSettings
getJavascriptCompressor
in interface IResourceSettings
JavascriptPackageResource
. Null is a valid value.IResourceSettings.getJavascriptCompressor()
public IJavascriptCompressor setJavascriptCompressor(IJavascriptCompressor compressor)
IResourceSettings
JavascriptPackageResource
. A typical implementation will remove comments and whitespace. But a no-op implementation is
available as well.
setJavascriptCompressor
in interface IResourceSettings
compressor
- The implementation to be used
IResourceSettings.setJavascriptCompressor(org.apache.wicket.javascript.IJavascriptCompressor)
public IDetachListener getDetachListener()
getDetachListener
in interface IFrameworkSettings
null
if noneIFrameworkSettings.getDetachListener()
public void setDetachListener(IDetachListener detachListener)
IFrameworkSettings
setDetachListener
in interface IFrameworkSettings
detachListener
- listener or null
to removeIFrameworkSettings.setDetachListener(org.apache.wicket.IDetachListener)
public void setDevelopmentUtilitiesEnabled(boolean enable)
IDebugSettings
setDevelopmentUtilitiesEnabled
in interface IDebugSettings
IDebugSettings.setDevelopmentUtilitiesEnabled(boolean)
public boolean isDevelopmentUtilitiesEnabled()
IDebugSettings
isDevelopmentUtilitiesEnabled
in interface IDebugSettings
IDebugSettings.isDevelopmentUtilitiesEnabled()
public final Duration getDefaultCacheDuration()
IResourceSettings
getDefaultCacheDuration
in interface IResourceSettings
IResourceSettings.getDefaultCacheDuration()
public final void setDefaultCacheDuration(Duration duration)
IResourceSettings
setDefaultCacheDuration
in interface IResourceSettings
duration
- default cache duration in secondsIResourceSettings.setDefaultCacheDuration(org.apache.wicket.util.time.Duration)
public IAuthenticationStrategy getAuthenticationStrategy()
ISecuritySettings
getAuthenticationStrategy
in interface ISecuritySettings
ISecuritySettings.getAuthenticationStrategy()
public void setAuthenticationStrategy(IAuthenticationStrategy strategy)
ISecuritySettings
setAuthenticationStrategy
in interface ISecuritySettings
strategy
- new authentication strategyISecuritySettings.setAuthenticationStrategy(org.apache.wicket.authentication.IAuthenticationStrategy)
public MarkupFactory getMarkupFactory()
IMarkupSettings
getMarkupFactory
in interface IMarkupSettings
IMarkupSettings.getMarkupFactory()
public void setMarkupFactory(MarkupFactory factory)
IMarkupSettings
setMarkupFactory
in interface IMarkupSettings
IMarkupSettings.setMarkupFactory(org.apache.wicket.markup.MarkupFactory)
public boolean getUseTimestampOnResources()
IResourceSettings
getUseTimestampOnResources
in interface IResourceSettings
true
if timestamps are enabledIResourceSettings.getUseTimestampOnResources()
public void setUseTimestampOnResources(boolean useTimestampOnResourcesName)
IResourceSettings
setUseTimestampOnResources
in interface IResourceSettings
useTimestampOnResourcesName
- true
for using timestamps on resource namesIResourceSettings.setUseTimestampOnResources(boolean)
public IExceptionSettings.AjaxErrorStrategy getAjaxErrorHandlingStrategy()
getAjaxErrorHandlingStrategy
in interface IExceptionSettings
IExceptionSettings.getAjaxErrorHandlingStrategy()
public void setAjaxErrorHandlingStrategy(IExceptionSettings.AjaxErrorStrategy errorHandlingStrategyDuringAjaxRequests)
IExceptionSettings
setAjaxErrorHandlingStrategy
in interface IExceptionSettings
IExceptionSettings.setAjaxErrorHandlingStrategy(org.apache.wicket.settings.IExceptionSettings.AjaxErrorStrategy)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |