/* * Copyright 2005 The Apache Software Foundation. * * Licensed 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.catalina.session; /** *
StandardManager implementation which fixes * Bug #36541.
* *Creates a Session of type StandardSessionBug36541 which restores * the synchronised access to the Session's attributes that were removed * in Tomcat 5.0.19.
* *Configure Tomcat 5.0.x to use this Manager implementation * through the Context - See * * Tomcat 5.0.x Configuration Reference.
* ** * <context> * <manager className="org.apache.catalina.session.StandardManagerBug36541" /> * </context> * ** * @version 1.0 - 13th September 2005 */ public class StandardManagerBug36541 extends StandardManager { // ----------------------------------------------------- Instance Variables /** * The descriptive information about this implementation. */ private static final String infoBug = "StandardManager/Patched for Bug #36541"; /** * The descriptive name of this Manager implementation (for logging). */ private static String nameBug = "StandardManagerBug36541"; // ------------------------------------------------------------- Properties /** * Return descriptive information about this Manager implementation and * the corresponding version number, in the format *
<description>/<version>.
*/
public String getInfo() {
return (infoBug);
}
/**
* Return the descriptive short name of this Manager implementation.
*/
public String getName() {
return (nameBug);
}
// ------------------------------------------------------------- Bug 36541 Fix
/**
* Get new session class to be used in the doLoad() method.
*/
protected StandardSession getNewSession() {
return new StandardSessionBug36541(this);
}
}