public abstract class AbstractHttpSendingTransportHandler extends AbstractTransportHandler implements SockJsSessionFactory
logger
コンストラクターと説明 |
---|
AbstractHttpSendingTransportHandler() |
修飾子と型 | メソッドと説明 |
---|---|
protected StringSE | getCallbackParam(ServerHttpRequest request) |
protected abstract MediaType | getContentType() |
protected abstract SockJsFrameFormat | getFrameFormat(ServerHttpRequest request) |
void | handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, SockJsSession wsSession) 指定されたリクエストを処理し、提供された WebSocketHandler にメッセージを委譲します。 |
protected void | handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, AbstractHttpSockJsSession sockJsSession) |
getServiceConfig, initialize
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
createSession
checkSessionType, getTransportType
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
に従ってリクエスト処理が失敗したときに発生します protected void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, AbstractHttpSockJsSession sockJsSession) throws SockJsException
protected abstract MediaType getContentType()
protected abstract SockJsFrameFormat getFrameFormat(ServerHttpRequest request)
@Nullable protected final StringSE getCallbackParam(ServerHttpRequest request)