001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.apache.wicket.jmx;
018
019import org.apache.wicket.markup.html.form.Form;
020import org.apache.wicket.util.lang.Bytes;
021
022/**
023 * Application settings.
024 * 
025 * @author eelcohillenius
026 */
027public interface ApplicationSettingsMBean
028{
029        /**
030         * Gets the access denied page class.
031         * 
032         * @return Returns the accessDeniedPage.
033         * @see org.apache.wicket.settings.ApplicationSettings#getAccessDeniedPage()
034         */
035        String getAccessDeniedPage();
036
037        /**
038         * Gets the default resolver to use when finding classes
039         * 
040         * @return Default class resolver
041         */
042        String getClassResolver();
043
044        /**
045         * Gets the default maximum size for uploads. This is used by {@link Form#getMaxSize()} if no
046         * value is explicitly set through {@link Form#setMaxSize(Bytes)}.
047         * 
048         * @return the default maximum size for uploads
049         */
050        String getDefaultMaximumUploadSize();
051
052        /**
053         * Gets internal error page class.
054         * 
055         * @return Returns the internalErrorPage.
056         * @see org.apache.wicket.settings.ApplicationSettings#getInternalErrorPage()
057         */
058        String getInternalErrorPage();
059
060        /**
061         * Gets the page expired page class.
062         * 
063         * @return Returns the pageExpiredErrorPage.
064         * @see org.apache.wicket.settings.ApplicationSettings#getPageExpiredErrorPage()
065         */
066        String getPageExpiredErrorPage();
067
068        /**
069         * Gets the unexpected exception display.
070         * 
071         * @return the unexpected exception display
072         */
073        String getUnexpectedExceptionDisplay();
074
075        /**
076         * Sets the default maximum size for uploads. This is used by {@link Form#getMaxSize()} if no
077         * value is explicitly set through {@link Form#setMaxSize(Bytes)}. The String value should be a
078         * floating point value followed by K, M, G or T for kilobytes, megabytes, gigabytes or
079         * terabytes, respectively. The abbreviations KB, MB, GB and TB are also accepted. Matching is
080         * case insensitive.
081         * 
082         * @param defaultUploadSize
083         *            the default maximum size for uploads
084         */
085        void setDefaultMaximumUploadSize(String defaultUploadSize);
086}