クラス AbstractHttpSendingTransportHandler
java.lang.ObjectSE
org.springframework.web.socket.sockjs.transport.handler.AbstractTransportHandler
org.springframework.web.socket.sockjs.transport.handler.AbstractHttpSendingTransportHandler
- 実装されたすべてのインターフェース:
SockJsSessionFactory
,TransportHandler
- 既知の直属サブクラス
EventSourceTransportHandler
、HtmlFileTransportHandler
、XhrPollingTransportHandler
、XhrStreamingTransportHandler
public abstract class AbstractHttpSendingTransportHandler
extends AbstractTransportHandler
implements SockJsSessionFactory
接続されたクライアントにメッセージをプッシュする HTTP トランスポートハンドラーの基本クラス。
- 導入:
- 4.0
- 作成者:
- Rossen Stoyanchev
フィールドサマリー
クラス org.springframework.web.socket.sockjs.transport.handler.AbstractTransportHandler から継承されたフィールド
logger
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明protected final StringSE
getCallbackParam
(ServerHttpRequest request) protected abstract MediaType
protected abstract SockJsFrameFormat
getFrameFormat
(ServerHttpRequest request) final void
handleRequest
(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, SockJsSession wsSession) 指定されたリクエストを処理し、提供されたWebSocketHandler
にメッセージを委譲します。protected void
handleRequestInternal
(ServerHttpRequest request, ServerHttpResponse response, AbstractHttpSockJsSession sockJsSession) クラス org.springframework.web.socket.sockjs.transport.handler.AbstractTransportHandler から継承されたメソッド
getServiceConfig, initialize
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.web.socket.sockjs.transport.SockJsSessionFactory から継承されたメソッド
createSession
インターフェース org.springframework.web.socket.sockjs.transport.TransportHandler から継承されたメソッド
checkSessionType, getTransportType
コンストラクターの詳細
AbstractHttpSendingTransportHandler
public AbstractHttpSendingTransportHandler()
メソッドの詳細
handleRequest
public final void handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, SockJsSession wsSession) throws SockJsException インターフェースからコピーされた説明:TransportHandler
指定されたリクエストを処理し、提供されたWebSocketHandler
にメッセージを委譲します。- 次で指定:
- インターフェース
TransportHandler
のhandleRequest
- パラメーター:
request
- 現在のリクエストresponse
- 現在のレスポンスwsHandler
- ターゲット WebSocketHandler (非null
)wsSession
- SockJS セッション (非null
)- 例外:
SockJsException
-SockJsService
に従ってリクエスト処理が失敗したときに発生します
handleRequestInternal
protected void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, AbstractHttpSockJsSession sockJsSession) throws SockJsException getContentType
getFrameFormat
getCallbackParam