public class JsonpPollingTransportHandler extends AbstractHttpSendingTransportHandler
logger
Constructor and Description |
---|
JsonpPollingTransportHandler() |
Modifier and Type | Method and Description |
---|---|
PollingSockJsSession |
createSession(String sessionId,
WebSocketHandler wsHandler,
Map<String,Object> attributes)
Create a new SockJS session.
|
protected MediaType |
getContentType() |
protected SockJsFrame.FrameFormat |
getFrameFormat(ServerHttpRequest request) |
TransportType |
getTransportType() |
void |
handleRequestInternal(ServerHttpRequest request,
ServerHttpResponse response,
AbstractHttpSockJsSession sockJsSession) |
getCallbackParam, handleRequest
getSockJsServiceConfig, setSockJsServiceConfiguration
public TransportType getTransportType()
protected MediaType getContentType()
getContentType
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
public void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, AbstractHttpSockJsSession sockJsSession) throws SockJsException
handleRequestInternal
in class AbstractHttpSendingTransportHandler
SockJsException
protected SockJsFrame.FrameFormat getFrameFormat(ServerHttpRequest request)
getFrameFormat
in class AbstractHttpSendingTransportHandler