Top Description Methods
org.springframework.web.socket.sockjs.transport

public Interface SockJsSessionFactory

Known Direct Implementers
org.springframework.web.socket.sockjs.transport.handler.AbstractHttpSendingTransportHandler, org.springframework.web.socket.sockjs.transport.handler.WebSocketTransportHandler
Imports
java.util.Map, org.springframework.web.socket.WebSocketHandler

A factory for creating a SockJS session. TransportHandlers typically also serve as SockJS session factories.
Author
Rossen Stoyanchev
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public SockJsSession

Returns:

a new session, never null
createSession
(String
the ID of the session
sessionId
,
WebSocketHandler
the underlying WebSocketHandler
handler
,
Map<String, Object>
handshake request specific attributes
attributes
)

Create a new SockJS session.

Method Detail

createSessionback to summary
public SockJsSession createSession(String sessionId, WebSocketHandler handler, Map<String, Object> attributes)

Create a new SockJS session.

Parameters
sessionId:String

the ID of the session

handler:WebSocketHandler

the underlying WebSocketHandler

attributes:Map<String, Object>

handshake request specific attributes

Returns:SockJsSession

a new session, never null