public abstract class StreamingSockJsSession extends AbstractHttpSockJsSession
DISCONNECTED_CLIENT_LOG_CATEGORY, disconnectedClientLogger, logger, responseLock
コンストラクターと説明 |
---|
StreamingSockJsSession(StringSE sessionId, SockJsServiceConfig config, WebSocketHandler wsHandler, MapSE<StringSE, ObjectSE> attributes) |
修飾子と型 | メソッドと説明 |
---|---|
protected void | flushCache() 接続がアクティブで、レスポンスに書き込む準備ができたときに呼び出されます。 |
protected abstract byte[] | getPrelude(ServerHttpRequest request) 他のデータの前にレスポンスに書き込むためのプレリュードを取得します。 |
protected void | handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, boolean initialRequest) SockJS トランスポートリクエストが受信されると呼び出されます。 |
disconnect, getAcceptedProtocol, getBinaryMessageSizeLimit, getExtensions, getHandshakeHeaders, getLocalAddress, getMessageCache, getPrincipal, getRemoteAddress, getTextMessageSizeLimit, getUri, handleInitialRequest, handleSuccessiveRequest, isActive, resetRequest, sendMessageInternal, setAcceptedProtocol, setBinaryMessageSizeLimit, setTextMessageSizeLimit, writeFrameInternal
cancelHeartbeat, close, close, delegateConnectionClosed, delegateConnectionEstablished, delegateError, delegateMessages, disableHeartbeat, getAttributes, getId, getMessageCodec, getSockJsServiceConfig, getTimeSinceLastActive, isClosed, isNew, isOpen, scheduleHeartbeat, sendHeartbeat, sendMessage, toString, tryCloseWithSockJsTransportError, updateLastActiveTime, writeFrame
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public StreamingSockJsSession(StringSE sessionId, SockJsServiceConfig config, WebSocketHandler wsHandler, MapSE<StringSE,ObjectSE> attributes)
protected abstract byte[] getPrelude(ServerHttpRequest request)
protected void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, boolean initialRequest) throws IOExceptionSE
AbstractHttpSockJsSession
AbstractHttpSockJsSession
の handleRequestInternal
request
- 現在のリクエスト response
- 現在のレスポンス initialRequest
- セッションの最初のリクエストかどうか IOExceptionSE
protected void flushCache() throws SockJsTransportFailureException
AbstractHttpSockJsSession
AbstractHttpSockJsSession
の flushCache
SockJsTransportFailureException