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

ru.concerteza.springtomcat.components.registry.concurrent.InvalidateExistedStrategy Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
package ru.concerteza.springtomcat.components.registry.concurrent;

import ru.concerteza.springtomcat.components.registry.SessionRegistry;

import javax.servlet.http.HttpSession;

/**
 * User: alexey
 * Date: 4/29/12
 */
public class InvalidateExistedStrategy implements ConcurrentSessionStrategy {
    @Override
    public void onExisted(SessionRegistry.LockBoundedManager manager, String login, HttpSession existed, HttpSession current) throws ConcurrentSessionException {
        manager.remove(existed);
        existed.invalidate();
        manager.put(login, current);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy