isessionsettings.java
来自「Wicket一个开发Java Web应用程序框架。它使得开发web应用程序变得容」· Java 代码 · 共 98 行
JAVA
98 行
/* * 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 * <p> * <i>pageFactory </i>- The factory class that is used for constructing page instances. * <p> * <i>pageMapEvictionStrategy </i>- The strategy for evicting pages from page maps when they are too * full * <p> * <i>maxPageMaps </i>- The maximum number of page maps allowed in a session (to prevent denial of * service attacks) * <p> * * @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 false, * which means that a page id is unique per pagemap. * * @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 */ boolean isPageIdUniquePerSession();}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?