クラス StreamingSockJsSession
java.lang.ObjectSE
org.springframework.web.socket.sockjs.transport.session.AbstractSockJsSession
org.springframework.web.socket.sockjs.transport.session.AbstractHttpSockJsSession
org.springframework.web.socket.sockjs.transport.session.StreamingSockJsSession
- 実装されたすべてのインターフェース:
CloseableSE
、AutoCloseableSE
、SockJsSession
、WebSocketSession
ストリーミング HTTP トランスポートで使用するための SockJS セッション。
- 導入:
- 4.0
- 作成者:
- Rossen Stoyanchev
フィールドサマリー
クラス org.springframework.web.socket.sockjs.transport.session.AbstractSockJsSession から継承されたフィールド
DISCONNECTED_CLIENT_LOG_CATEGORY, disconnectedClientLogger, logger, responseLock
コンストラクターのサマリー
コンストラクター説明StreamingSockJsSession
(StringSE sessionId, SockJsServiceConfig config, WebSocketHandler wsHandler, MapSE<StringSE, ObjectSE> attributes) メソッドのサマリー
修飾子と型メソッド説明protected void
接続がアクティブで、レスポンスに書き込む準備ができたときに呼び出されます。protected abstract byte[]
getPrelude
(ServerHttpRequest request) 他のデータの前にレスポンスに書き込むためのプレリュードを取得します。protected void
handleRequestInternal
(ServerHttpRequest request, ServerHttpResponse response, boolean initialRequest) SockJS トランスポートリクエストが受信されると呼び出されます。クラス org.springframework.web.socket.sockjs.transport.session.AbstractHttpSockJsSession から継承されたメソッド
disconnect, getAcceptedProtocol, getBinaryMessageSizeLimit, getExtensions, getHandshakeHeaders, getLocalAddress, getMessageCache, getPrincipal, getRemoteAddress, getTextMessageSizeLimit, getUri, handleInitialRequest, handleSuccessiveRequest, isActive, resetRequest, sendMessageInternal, setAcceptedProtocol, setBinaryMessageSizeLimit, setTextMessageSizeLimit, writeFrameInternal
クラス org.springframework.web.socket.sockjs.transport.session.AbstractSockJsSession から継承されたメソッド
cancelHeartbeat, close, close, delegateConnectionClosed, delegateConnectionEstablished, delegateError, delegateMessages, disableHeartbeat, getAttributes, getId, getMessageCodec, getSockJsServiceConfig, getTimeSinceLastActive, isClosed, isNew, isOpen, scheduleHeartbeat, sendHeartbeat, sendMessage, toString, tryCloseWithSockJsTransportError, updateLastActiveTime, writeFrame
コンストラクターの詳細
StreamingSockJsSession
public StreamingSockJsSession(StringSE sessionId, SockJsServiceConfig config, WebSocketHandler wsHandler, MapSE<StringSE, ObjectSE> attributes)
メソッドの詳細
getPrelude
他のデータの前にレスポンスに書き込むためのプレリュードを取得します。- 導入:
- 4.2
handleRequestInternal
protected void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, boolean initialRequest) throws IOExceptionSE クラスからコピーされた説明:AbstractHttpSockJsSession
SockJS トランスポートリクエストが受信されると呼び出されます。- 次で指定:
- クラス
AbstractHttpSockJsSession
のhandleRequestInternal
- パラメーター:
request
- 現在のリクエストresponse
- 現在のレスポンスinitialRequest
- セッションの最初のリクエストかどうか- 例外:
IOExceptionSE
flushCache
クラスからコピーされた説明:AbstractHttpSockJsSession
接続がアクティブで、レスポンスに書き込む準備ができたときに呼び出されます。サブクラスは、"responseLock" が取得されるメソッドからのみこのメソッドを呼び出す必要があります。- 次で指定:
- クラス
AbstractHttpSockJsSession
のflushCache
- 例外:
SockJsTransportFailureException