public class XhrPollingTransportHandler extends AbstractHttpSendingTransportHandler
TransportHandler based on XHR (long) polling.logger, UTF8_CHARSET| Constructor and Description |
|---|
XhrPollingTransportHandler() |
| Modifier and Type | Method and Description |
|---|---|
PollingSockJsSession |
createSession(String sessionId,
WebSocketHandler handler,
Map<String,Object> attributes)
Create a new SockJS session.
|
protected org.springframework.http.MediaType |
getContentType() |
protected SockJsFrameFormat |
getFrameFormat(org.springframework.http.server.ServerHttpRequest request) |
TransportType |
getTransportType()
Return the transport type supported by this handler.
|
getCallbackParam, handleRequest, handleRequestInternalgetServiceConfig, initializepublic TransportType getTransportType()
TransportHandlerprotected org.springframework.http.MediaType getContentType()
getContentType in class AbstractHttpSendingTransportHandlerprotected SockJsFrameFormat getFrameFormat(org.springframework.http.server.ServerHttpRequest request)
getFrameFormat in class AbstractHttpSendingTransportHandlerpublic PollingSockJsSession createSession(String sessionId, WebSocketHandler handler, Map<String,Object> attributes)
SockJsSessionFactorysessionId - the ID of the sessionhandler - the underlying WebSocketHandlerattributes - handshake request specific attributesnull