| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| public | StreamingSockJsSession(String sessionId, SockJsServiceConfig config, WebSocketHandler wsHandler, Map<String, Object> attributes)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | flushCache()
Implements abstract org. Called when the connection is active and ready to write to the response. |
| protected abstract byte[] | getPrelude(ServerHttpRequest request)
Get the prelude to write to the response before any other data. |
| protected void | handleRequestInternal(ServerHttpRequest
the current request request, ServerHttpResponse the current response response, boolean whether it is the first request for the session initialRequest)Implements abstract org. Invoked when a SockJS transport request is received. |
| byteCount | back to summary |
|---|---|
| private int byteCount | |
| StreamingSockJsSession | back to summary |
|---|---|
| public StreamingSockJsSession(String sessionId, SockJsServiceConfig config, WebSocketHandler wsHandler, Map<String, Object> attributes) | |
| flushCache | back to summary |
|---|---|
| protected void flushCache() throws SockJsTransportFailureException Implements abstract org. Doc from org. Called when the connection is active and ready to write to the response. Subclasses should only call this method from a method where the "responseLock" is acquired.
| |
| getPrelude | back to summary |
|---|---|
| protected abstract byte[] getPrelude(ServerHttpRequest request) Get the prelude to write to the response before any other data.
| |
| handleRequestInternal | back to summary |
|---|---|
| protected void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, boolean initialRequest) throws IOException Implements abstract org. Invoked when a SockJS transport request is received.
| |