public class XhrPollingTransportHandler extends AbstractHttpSendingTransportHandler
TransportHandler
based on XHR (long) polling.logger
Constructor and Description |
---|
XhrPollingTransportHandler() |
Modifier and Type | Method and Description |
---|---|
PollingSockJsSession |
createSession(String sessionId,
WebSocketHandler wsHandler,
Map<String,Object> attributes)
Create a new SockJS session.
|
protected org.springframework.http.MediaType |
getContentType() |
protected SockJsFrame.FrameFormat |
getFrameFormat(org.springframework.http.server.ServerHttpRequest request) |
TransportType |
getTransportType() |
getCallbackParam, handleRequest, handleRequestInternal
getSockJsServiceConfig, setSockJsServiceConfiguration
public TransportType getTransportType()
protected org.springframework.http.MediaType getContentType()
getContentType
in class AbstractHttpSendingTransportHandler
protected SockJsFrame.FrameFormat getFrameFormat(org.springframework.http.server.ServerHttpRequest request)
getFrameFormat
in class AbstractHttpSendingTransportHandler
public PollingSockJsSession createSession(String sessionId, WebSocketHandler wsHandler, Map<String,Object> attributes)
SockJsSessionFactory
sessionId
- the ID of the sessionwsHandler
- the underlying WebSocketHandler
attributes
- handshake request specific attributesnull