org.wildfly.clustering.web.session.HttpSessionFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wildfly-clustering-web-spi Show documentation
Show all versions of wildfly-clustering-web-spi Show documentation
A set of SPIs for implementing a container-independent distributable HTTP session manager and single sign-on manager for use by a servlet container.
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.web.session;
/**
* Factory for creating HttpSession specification implementations
* @param the specification type for the HttpSession
* @param the specification type for the ServletContext
* @author Paul Ferraro
*/
public interface HttpSessionFactory {
/**
* Create an HttpSession specification implementation for the specified session and servlet context.
* @param session a session
* @param context a servlet context
* @return a HttpSession specification implementation
*/
S createHttpSession(ImmutableSession session, C context);
}