TransportHandler that sends messages over an HTTP streaming request.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] |
| 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. |
| PRELUDE | back to summary |
|---|---|
| private static final byte[] PRELUDE | |
| XhrStreamingTransportHandler | back to summary |
|---|---|
| public XhrStreamingTransportHandler() | |
| 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.
| |
| Access | Constructor and Description |
|---|---|
| public | XhrStreamingSockJsSession(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. |
| XhrStreamingSockJsSession | back to summary |
|---|---|
| public XhrStreamingSockJsSession(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.
| |