public class XhrStreamingTransportHandler extends AbstractHttpSendingTransportHandler
TransportHandler
that sends messages over an HTTP streaming request.Modifier and Type | Class and Description |
---|---|
private class |
XhrStreamingTransportHandler.XhrStreamingSockJsSession |
logger, UTF8_CHARSET
Constructor and Description |
---|
XhrStreamingTransportHandler() |
Modifier and Type | Method and Description |
---|---|
StreamingSockJsSession |
createSession(java.lang.String sessionId,
WebSocketHandler handler,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Create a new SockJS session.
|
protected MediaType |
getContentType() |
protected SockJsFrameFormat |
getFrameFormat(ServerHttpRequest request) |
TransportType |
getTransportType()
Return the transport type supported by this handler.
|
getCallbackParam, handleRequest, handleRequestInternal
getServiceConfig, initialize
public TransportType getTransportType()
TransportHandler
protected MediaType getContentType()
getContentType
in class AbstractHttpSendingTransportHandler
public StreamingSockJsSession createSession(java.lang.String sessionId, WebSocketHandler handler, java.util.Map<java.lang.String,java.lang.Object> attributes)
SockJsSessionFactory
sessionId
- the ID of the sessionhandler
- the underlying WebSocketHandler
attributes
- handshake request specific attributesnull
protected SockJsFrameFormat getFrameFormat(ServerHttpRequest request)
getFrameFormat
in class AbstractHttpSendingTransportHandler