public class JsonpPollingTransportHandler extends AbstractHttpSendingTransportHandler
logger, UTF8_CHARSET| Constructor and Description |
|---|
JsonpPollingTransportHandler() |
| 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.
|
void |
handleRequestInternal(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
AbstractHttpSockJsSession sockJsSession) |
getCallbackParam, handleRequestgetServiceConfig, initializepublic TransportType getTransportType()
TransportHandlerprotected org.springframework.http.MediaType getContentType()
getContentType 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 attributesnullpublic void handleRequestInternal(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
AbstractHttpSockJsSession sockJsSession)
throws SockJsException
handleRequestInternal in class AbstractHttpSendingTransportHandlerSockJsExceptionprotected SockJsFrameFormat getFrameFormat(org.springframework.http.server.ServerHttpRequest request)
getFrameFormat in class AbstractHttpSendingTransportHandler