TransportHandler that uses a famous browser
document.domain technique. See
stackoverflow.com/questions/1481251/what-does-document-domain-document-domain-do
for details.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | checkSessionType(SockJsSession session)
Implements org. Check whether the type of the given session matches the transport type
of this |
| public StreamingSockJsSession | createSession(String
the ID of the session sessionId, WebSocketHandler the underlying handler, Map<String, Object> WebSocketHandlerhandshake request specific attributes attributes)Implements org. Create a new SockJS session. |
| protected MediaType | |
| protected SockJsFrameFormat | |
| public TransportType | getTransportType()
Implements org. Return the transport type supported by this handler. |
| public void |
| MINIMUM_PARTIAL_HTML_CONTENT_LENGTH | back to summary |
|---|---|
| private static final int MINIMUM_PARTIAL_HTML_CONTENT_LENGTH | |
| PARTIAL_HTML_CONTENT | back to summary |
|---|---|
| private static final String PARTIAL_HTML_CONTENT | |
| HtmlFileTransportHandler | back to summary |
|---|---|
| public HtmlFileTransportHandler() | |
| checkSessionType | back to summary |
|---|---|
| public boolean checkSessionType(SockJsSession session) Implements org. Doc from org. Check whether the type of the given session matches the transport type
of this
| |
| createSession | back to summary |
|---|---|
| public StreamingSockJsSession createSession(String sessionId, WebSocketHandler handler, Map<String, Object> attributes) Implements org. Doc from org. Create a new SockJS session.
| |
| getContentType | back to summary |
|---|---|
| protected MediaType getContentType() Implements abstract org.
| |
| getFrameFormat | back to summary |
|---|---|
| protected SockJsFrameFormat getFrameFormat(ServerHttpRequest request) Implements abstract org.
| |
| getTransportType | back to summary |
|---|---|
| public TransportType getTransportType() Implements org. Doc from org. Return the transport type supported by this handler.
| |
| handleRequestInternal | back to summary |
|---|---|
public void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, AbstractHttpSockJsSession sockJsSession) throws SockJsException
| |
| Access | Constructor and Description |
|---|---|
| public | HtmlFileStreamingSockJsSession(String sessionId, SockJsServiceConfig config, WebSocketHandler wsHandler, Map<String, Object> attributes)
|
| Modifier and Type | Method and Description |
|---|---|
| protected byte[] | getPrelude(ServerHttpRequest request)
Implements abstract org. Get the prelude to write to the response before any other data. |
| HtmlFileStreamingSockJsSession | back to summary |
|---|---|
| public HtmlFileStreamingSockJsSession(String sessionId, SockJsServiceConfig config, WebSocketHandler wsHandler, Map<String, Object> attributes) | |
| getPrelude | back to summary |
|---|---|
| protected byte[] getPrelude(ServerHttpRequest request) Implements abstract org. Doc from org. Get the prelude to write to the response before any other data.
| |