org.frameworkset.web.socket.sockjs.SockJsSessionFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bboss-websocket Show documentation
Show all versions of bboss-websocket Show documentation
bboss is a j2ee framework include aop/ioc,mvc,persistent,taglib,rpc,event ,bean-xml serializable and so on.http://www.bbossgroups.com
The newest version!
package org.frameworkset.web.socket.sockjs;
import java.util.Map;
import org.frameworkset.web.socket.inf.WebSocketHandler;
/**
* A factory for creating a SockJS session. {@link TransportHandler}s typically also serve
* as SockJS session factories.
*
* @author Rossen Stoyanchev
* @since 4.0
*/
public interface SockJsSessionFactory {
/**
* Create a new SockJS session.
* @param sessionId the ID of the session
* @param handler the underlying {@link WebSocketHandler}
* @param attributes handshake request specific attributes
* @return a new session, never {@code null}
*/
SockJsSession createSession(String sessionId, WebSocketHandler handler, Map attributes);
}