public class HtmlFileTransportHandler extends AbstractHttpSendingTransportHandler
TransportHandler
that uses a famous browsder document.domain technique:
http://stackoverflow.com/questions/1481251/what-does-document-domain-document-domain-doModifier and Type | Field and Description |
---|---|
private static java.lang.String |
PARTIAL_HTML_CONTENT |
logger
Constructor and Description |
---|
HtmlFileTransportHandler() |
Modifier and Type | Method and Description |
---|---|
StreamingSockJsSession |
createSession(java.lang.String sessionId,
WebSocketHandler handler)
Create a new SockJS session.
|
protected MediaType |
getContentType() |
protected SockJsFrame.FrameFormat |
getFrameFormat(ServerHttpRequest request) |
TransportType |
getTransportType() |
void |
handleRequestInternal(ServerHttpRequest request,
ServerHttpResponse response,
AbstractHttpSockJsSession session) |
getSockJsConfig, handleRequest, setSockJsConfiguration
public TransportType getTransportType()
protected MediaType getContentType()
getContentType
in class AbstractHttpSendingTransportHandler
public StreamingSockJsSession createSession(java.lang.String sessionId, WebSocketHandler handler)
SockJsSessionFactory
sessionId
- the ID of the sessionhandler
- the underlying WebSocketHandler
public void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, AbstractHttpSockJsSession session) throws TransportErrorException
handleRequestInternal
in class AbstractHttpSendingTransportHandler
TransportErrorException
protected SockJsFrame.FrameFormat getFrameFormat(ServerHttpRequest request)
getFrameFormat
in class AbstractHttpSendingTransportHandler