org.apache.wicket.jmx
Class ApplicationSettings

java.lang.Object
  extended by org.apache.wicket.jmx.ApplicationSettings
All Implemented Interfaces:
ApplicationSettingsMBean

public class ApplicationSettings
extends java.lang.Object
implements ApplicationSettingsMBean

Exposes Application related functionality for JMX.

Author:
eelcohillenius

Constructor Summary
ApplicationSettings(Application application)
          Create.
 
Method Summary
 java.lang.String getAccessDeniedPage()
          Gets the access denied page class.
 java.lang.String getClassResolver()
          Gets the default resolver to use when finding classes
 java.lang.String getDefaultMaximumUploadSize()
          Gets the default maximum size for uploads.
 java.lang.String getInternalErrorPage()
          Gets internal error page class.
 java.lang.String getPageExpiredErrorPage()
          Gets the page expired page class.
 java.lang.String getUnexpectedExceptionDisplay()
          Gets the unexpected exception display.
 void setDefaultMaximumUploadSize(java.lang.String defaultUploadSize)
          Sets the default maximum size for uploads.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationSettings

public ApplicationSettings(Application application)
Create.

Parameters:
application -
Method Detail

getAccessDeniedPage

public java.lang.String getAccessDeniedPage()
Description copied from interface: ApplicationSettingsMBean
Gets the access denied page class.

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

getClassResolver

public java.lang.String getClassResolver()
Description copied from interface: ApplicationSettingsMBean
Gets the default resolver to use when finding classes

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

getDefaultMaximumUploadSize

public java.lang.String getDefaultMaximumUploadSize()
Description copied from interface: ApplicationSettingsMBean
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 ApplicationSettingsMBean
Returns:
the default maximum size for uploads

getInternalErrorPage

public java.lang.String getInternalErrorPage()
Description copied from interface: ApplicationSettingsMBean
Gets internal error page class.

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

getPageExpiredErrorPage

public java.lang.String getPageExpiredErrorPage()
Description copied from interface: ApplicationSettingsMBean
Gets the page expired page class.

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

getUnexpectedExceptionDisplay

public java.lang.String getUnexpectedExceptionDisplay()
Description copied from interface: ApplicationSettingsMBean
Gets the unexpected exception display.

Specified by:
getUnexpectedExceptionDisplay in interface ApplicationSettingsMBean
Returns:
the unexpected exception display
See Also:
ApplicationSettingsMBean.getUnexpectedExceptionDisplay()

setDefaultMaximumUploadSize

public void setDefaultMaximumUploadSize(java.lang.String defaultUploadSize)
Description copied from interface: ApplicationSettingsMBean
Sets the default maximum size for uploads. This is used by Form.getMaxSize() if no value is explicitly set through Form.setMaxSize(Bytes). The String value should be a floating point value followed by K, M, G or T for kilobytes, megabytes, gigabytes or terabytes, respectively. The abbreviations KB, MB, GB and TB are also accepted. Matching is case insensitive.

Specified by:
setDefaultMaximumUploadSize in interface ApplicationSettingsMBean
Parameters:
defaultUploadSize - the default maximum size for uploads
See Also:
ApplicationSettingsMBean.setDefaultMaximumUploadSize(java.lang.String)


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.