public abstract class AbstractHttpReceivingTransportHandler extends TransportHandlerSupport implements TransportHandler
logger| Constructor and Description |
|---|
AbstractHttpReceivingTransportHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract HttpStatus |
getResponseStatus() |
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,
WebSocketHandler wsHandler,
AbstractHttpSockJsSession sockJsSession) |
protected abstract String[] |
readMessages(ServerHttpRequest request) |
getSockJsServiceConfig, setSockJsServiceConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTransportTypepublic AbstractHttpReceivingTransportHandler()
public 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, WebSocketHandler wsHandler, AbstractHttpSockJsSession sockJsSession) throws SockJsException
SockJsExceptionprotected abstract String[] readMessages(ServerHttpRequest request) throws IOException
IOExceptionprotected abstract HttpStatus getResponseStatus()