public abstract class AbstractHttpSendingTransportHandler extends TransportHandlerSupport implements TransportHandler, SockJsSessionFactory
logger| Constructor and Description |
|---|
AbstractHttpSendingTransportHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getCallbackParam(ServerHttpRequest request) |
protected abstract MediaType |
getContentType() |
protected abstract SockJsFrame.FrameFormat |
getFrameFormat(ServerHttpRequest request) |
void |
handleRequest(ServerHttpRequest request,
ServerHttpResponse response,
WebSocketHandler wsHandler,
WebSocketSession wsSession)
Handle the given request and delegate messages to the provided
WebSocketHandler. |
protected void |
handleRequestInternal(ServerHttpRequest request,
ServerHttpResponse response,
AbstractHttpSockJsSession sockJsSession) |
getSockJsServiceConfig, setSockJsServiceConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTransportTypecreateSessionpublic final void handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, WebSocketSession wsSession) throws SockJsException
TransportHandlerWebSocketHandler.handleRequest in interface TransportHandlerrequest - the current requestresponse - the current responsewsHandler - the target WebSocketHandler, never nullwsSession - the SockJS session, never nullSockJsException - raised when request processing fails as explained in
SockJsServiceprotected void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, AbstractHttpSockJsSession sockJsSession) throws SockJsException
SockJsExceptionprotected abstract MediaType getContentType()
protected abstract SockJsFrame.FrameFormat getFrameFormat(ServerHttpRequest request)
protected final String getCallbackParam(ServerHttpRequest request)