org.apache.wicket.settings.def
Class ApplicationSettings

java.lang.Object
  extended by org.apache.wicket.settings.def.ApplicationSettings
All Implemented Interfaces:
IApplicationSettings

public class ApplicationSettings
extends java.lang.Object
implements IApplicationSettings

Author:
Jonathan Locke, Chris Turner, Eelco Hillenius, Juergen Donnerstag, Johan Compagner, Igor Vaynberg (ivaynberg), Martijn Dashorst, James Carman

Constructor Summary
ApplicationSettings()
           
 
Method Summary
 java.lang.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.
 java.lang.Class<? extends Page> getInternalErrorPage()
          Gets internal error page class.
 java.lang.Class<? extends Page> getPageExpiredErrorPage()
          Gets the page expired page class.
 boolean isUploadProgressUpdatesEnabled()
          Gets whether wicket is providing updates about the upload progress or not.
 void setAccessDeniedPage(java.lang.Class<? extends Page> accessDeniedPage)
          Sets the access denied page class.
 void setClassResolver(IClassResolver defaultClassResolver)
          Sets the default class resolver to use when finding classes and resources.
 void setDefaultMaximumUploadSize(Bytes defaultMaximumUploadSize)
          Sets the default maximum size for uploads.
 void setInternalErrorPage(java.lang.Class<? extends Page> internalErrorPage)
          Sets internal error page class.
 void setPageExpiredErrorPage(java.lang.Class<? extends Page> pageExpiredErrorPage)
          Sets the page expired page class.
 void setUploadProgressUpdatesEnabled(boolean uploadProgressUpdatesEnabled)
          Sets whether wicket should provide updates about the upload progress or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationSettings

public ApplicationSettings()
Method Detail

getAccessDeniedPage

public java.lang.Class<? extends Page> getAccessDeniedPage()
Description copied from interface: IApplicationSettings
Gets the access denied page class.

Specified by:
getAccessDeniedPage in interface IApplicationSettings
Returns:
Returns the accessDeniedPage.
See Also:
IApplicationSettings.getAccessDeniedPage()

getClassResolver

public IClassResolver getClassResolver()
Description copied from interface: IApplicationSettings
Gets the default resolver to use when finding classes and resources.

Specified by:
getClassResolver in interface IApplicationSettings
Returns:
Default class resolver
See Also:
IApplicationSettings.getClassResolver()

getDefaultMaximumUploadSize

public Bytes getDefaultMaximumUploadSize()
Description copied from interface: IApplicationSettings
Gets the default maximum size for uploads. This is used by Form.getMaxSize() if no value is explicitly set through Form.setMaxSize(Bytes).

Specified by:
getDefaultMaximumUploadSize in interface IApplicationSettings
Returns:
the default maximum size for uploads

getInternalErrorPage

public java.lang.Class<? extends Page> getInternalErrorPage()
Description copied from interface: IApplicationSettings
Gets internal error page class.

Specified by:
getInternalErrorPage in interface IApplicationSettings
Returns:
Returns the internalErrorPage.
See Also:
IApplicationSettings.getInternalErrorPage()

getPageExpiredErrorPage

public java.lang.Class<? extends Page> getPageExpiredErrorPage()
Description copied from interface: IApplicationSettings
Gets the page expired page class.

Specified by:
getPageExpiredErrorPage in interface IApplicationSettings
Returns:
Returns the pageExpiredErrorPage.
See Also:
IApplicationSettings.getPageExpiredErrorPage()

isUploadProgressUpdatesEnabled

public boolean isUploadProgressUpdatesEnabled()
Description copied from interface: IApplicationSettings
Gets whether wicket is providing updates about the upload progress or not.

Specified by:
isUploadProgressUpdatesEnabled in interface IApplicationSettings
Returns:
if true upload progress monitoring is enabled
See Also:
IApplicationSettings.isUploadProgressUpdatesEnabled()

setAccessDeniedPage

public void setAccessDeniedPage(java.lang.Class<? extends Page> accessDeniedPage)
Description copied from interface: IApplicationSettings
Sets the access denied page class. The class must be bookmarkable and must extend Page.

Specified by:
setAccessDeniedPage in interface IApplicationSettings
Parameters:
accessDeniedPage - The accessDeniedPage to set.
See Also:
IApplicationSettings.setAccessDeniedPage(java.lang.Class)

setClassResolver

public void setClassResolver(IClassResolver defaultClassResolver)
Description copied from interface: IApplicationSettings
Sets the default class resolver to use when finding classes and resources.

Specified by:
setClassResolver in interface IApplicationSettings
Parameters:
defaultClassResolver - The default class resolver
See Also:
IApplicationSettings.setClassResolver(org.apache.wicket.application.IClassResolver)

setDefaultMaximumUploadSize

public void setDefaultMaximumUploadSize(Bytes defaultMaximumUploadSize)
Description copied from interface: IApplicationSettings
Sets the default maximum size for uploads. This is used by Form.getMaxSize() if no value is explicitly set through Form.setMaxSize(Bytes).

Specified by:
setDefaultMaximumUploadSize in interface IApplicationSettings
Parameters:
defaultMaximumUploadSize - the default maximum size for uploads
See Also:
IApplicationSettings.setDefaultMaximumUploadSize(org.apache.wicket.util.lang.Bytes)

setInternalErrorPage

public void setInternalErrorPage(java.lang.Class<? extends Page> internalErrorPage)
Description copied from interface: IApplicationSettings
Sets internal error page class. The class must be bookmarkable and must extend Page.

Specified by:
setInternalErrorPage in interface IApplicationSettings
Parameters:
internalErrorPage - The internalErrorPage to set.
See Also:
IApplicationSettings.setInternalErrorPage(java.lang.Class)

setPageExpiredErrorPage

public void setPageExpiredErrorPage(java.lang.Class<? extends Page> pageExpiredErrorPage)
Description copied from interface: IApplicationSettings
Sets the page expired page class. The class must be bookmarkable and must extend Page.

Specified by:
setPageExpiredErrorPage in interface IApplicationSettings
Parameters:
pageExpiredErrorPage - The pageExpiredErrorPage to set.
See Also:
IApplicationSettings.setPageExpiredErrorPage(java.lang.Class)

setUploadProgressUpdatesEnabled

public void setUploadProgressUpdatesEnabled(boolean uploadProgressUpdatesEnabled)
Description copied from interface: IApplicationSettings
Sets whether wicket should provide updates about the upload progress or not.

Specified by:
setUploadProgressUpdatesEnabled in interface IApplicationSettings
Parameters:
uploadProgressUpdatesEnabled - if true upload progress monitoring is enabled
See Also:
IApplicationSettings.setUploadProgressUpdatesEnabled(boolean)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.