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, setSockJsServiceConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTransportType
public AbstractHttpReceivingTransportHandler()
public final void handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, WebSocketSession wsSession) throws SockJsException
TransportHandler
WebSocketHandler
.handleRequest
in interface TransportHandler
request
- the current requestresponse
- the current responsewsHandler
- the target WebSocketHandler, never null
wsSession
- the SockJS session, never null
SockJsException
- raised when request processing fails as explained in
SockJsService
protected void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, AbstractHttpSockJsSession sockJsSession) throws SockJsException
SockJsException
protected abstract String[] readMessages(ServerHttpRequest request) throws IOException
IOException
protected abstract HttpStatus getResponseStatus()