All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.wicket.settings.ISessionSettings Maven / Gradle / Ivy

Go to download

Pax Wicket Service is an OSGi extension of the Wicket framework, allowing for dynamic loading and unloading of Wicket components and pageSources.

There is a newer version: 5.0.0
Show newest version
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.wicket.settings;

import org.apache.wicket.IPageFactory;
import org.apache.wicket.session.pagemap.IPageMapEvictionStrategy;

/**
 * Interface for session related settings
 * 

* pageFactory - The factory class that is used for constructing page instances. *

* pageMapEvictionStrategy - The strategy for evicting pages from page maps when they are too * full *

* maxPageMaps - The maximum number of page maps allowed in a session (to prevent denial of * service attacks) *

* * @author Igor Vaynberg (ivaynberg) */ public interface ISessionSettings { /** * Gets maximum number of page maps allowed in this session * * @return Maximum number of page maps */ int getMaxPageMaps(); /** * Gets the factory to be used when creating pages * * @return The default page factory */ IPageFactory getPageFactory(); /** * Gets the strategy for evicting pages from the page map. * * @return the strategy for evicting pages from the page map */ IPageMapEvictionStrategy getPageMapEvictionStrategy(); /** * Sets maximum number of page maps allowed in this session * * @param maxPageMaps * Maximum number of page maps */ void setMaxPageMaps(int maxPageMaps); /** * Sets the factory to be used when creating pages. * * @param pageFactory * The default factory */ void setPageFactory(final IPageFactory pageFactory); /** * Sets the strategy for evicting pages from the page map. * * @param pageMapEvictionStrategy * the strategy for evicting pages from the page map */ void setPageMapEvictionStrategy(IPageMapEvictionStrategy pageMapEvictionStrategy); /** * Sets whether the id of a page should be unique across the entire session. Default is true, * which means that a page id is unique per session. * * @param value */ void setPageIdUniquePerSession(boolean value); /** * Returns whether the page id is unique per session. If the page id is not unique per session, * it is only unique per pagemap. * * @return true if he page id is unique per session */ boolean isPageIdUniquePerSession(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy