public class ApplicationSettings extends Object
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.
Constructor and Description |
---|
ApplicationSettings() |
Modifier and Type | Method and Description |
---|---|
Class<? extends Page> |
getAccessDeniedPage()
Gets the access denied page class.
|
IClassResolver |
getClassResolver()
Gets the default resolver to use when finding classes and resources.
|
Bytes |
getDefaultMaximumUploadSize()
Gets the default maximum size for uploads.
|
IFeedbackMessageFilter |
getFeedbackMessageCleanupFilter()
Returns the cleanup feedback message filter.
|
Class<? extends Page> |
getInternalErrorPage()
Gets internal error page class.
|
Class<? extends Page> |
getPageExpiredErrorPage()
Gets the page expired page class.
|
boolean |
isUploadProgressUpdatesEnabled()
Gets whether wicket is providing updates about the upload progress or not.
|
ApplicationSettings |
setAccessDeniedPage(Class<? extends Page> accessDeniedPage)
Sets the access denied page class.
|
ApplicationSettings |
setClassResolver(IClassResolver defaultClassResolver)
Sets the default class resolver to use when finding classes and resources.
|
ApplicationSettings |
setDefaultMaximumUploadSize(Bytes defaultMaximumUploadSize)
Sets the default maximum size for uploads.
|
ApplicationSettings |
setFeedbackMessageCleanupFilter(IFeedbackMessageFilter filter)
Sets the cleanup feedback message filter.
|
ApplicationSettings |
setInternalErrorPage(Class<? extends Page> internalErrorPage)
Sets internal error page class.
|
ApplicationSettings |
setPageExpiredErrorPage(Class<? extends Page> pageExpiredErrorPage)
Sets the page expired page class.
|
ApplicationSettings |
setUploadProgressUpdatesEnabled(boolean uploadProgressUpdatesEnabled)
Sets whether wicket should provide updates about the upload progress or not.
|
public Class<? extends Page> getAccessDeniedPage()
public IClassResolver getClassResolver()
public Bytes getDefaultMaximumUploadSize()
Form.getMaxSize()
if no
value is explicitly set through Form.setMaxSize(Bytes)
.public Class<? extends Page> getInternalErrorPage()
public Class<? extends Page> getPageExpiredErrorPage()
public boolean isUploadProgressUpdatesEnabled()
public ApplicationSettings setAccessDeniedPage(Class<? extends Page> accessDeniedPage)
accessDeniedPage
- The accessDeniedPage to set.this
object for chainingpublic ApplicationSettings setClassResolver(IClassResolver defaultClassResolver)
defaultClassResolver
- The default class resolverthis
object for chainingpublic ApplicationSettings setDefaultMaximumUploadSize(Bytes defaultMaximumUploadSize)
Form.getMaxSize()
if no
value is explicitly set through Form.setMaxSize(Bytes)
.defaultMaximumUploadSize
- the default maximum size for uploadsthis
object for chainingpublic ApplicationSettings setInternalErrorPage(Class<? extends Page> internalErrorPage)
Page
.
Consider using custom
request
cycle listener
if you need to pass some extra information to the error page. By using
IRequestCycleListener
the application has more flexibility in
the instantiation of the error page.
internalErrorPage
- The internalErrorPage to set.this
object for chainingIRequestCycleListener.onException(RequestCycle, Exception)
public ApplicationSettings setPageExpiredErrorPage(Class<? extends Page> pageExpiredErrorPage)
pageExpiredErrorPage
- The pageExpiredErrorPage to set.this
object for chainingpublic ApplicationSettings setUploadProgressUpdatesEnabled(boolean uploadProgressUpdatesEnabled)
uploadProgressUpdatesEnabled
- if true upload progress monitoring is enabledthis
object for chainingpublic ApplicationSettings setFeedbackMessageCleanupFilter(IFeedbackMessageFilter filter)
getFeedbackMessageCleanupFilter()
for
more details.filter
- this
object for chainingpublic IFeedbackMessageFilter getFeedbackMessageCleanupFilter()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.