public abstract class AbstractHttpReceivingTransportHandler extends Object implements TransportHandler
| Constructor and Description |
|---|
AbstractHttpReceivingTransportHandler() |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
protected abstract HttpStatus |
getResponseStatus() |
void |
handleRequest(ServerHttpRequest request,
ServerHttpResponse response,
WebSocketHandler webSocketHandler,
AbstractSockJsSession session) |
protected void |
handleRequestInternal(ServerHttpRequest request,
ServerHttpResponse response,
AbstractSockJsSession session) |
protected abstract String[] |
readMessages(ServerHttpRequest request) |
protected void |
sendInternalServerError(ServerHttpResponse response,
String error,
String sessionId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTransportTypeprotected final Log logger
public AbstractHttpReceivingTransportHandler()
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public final void handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler webSocketHandler, AbstractSockJsSession session) throws TransportErrorException
handleRequest in interface TransportHandlerTransportErrorExceptionprotected void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, AbstractSockJsSession session) throws TransportErrorException
TransportErrorExceptionprotected void sendInternalServerError(ServerHttpResponse response, String error, String sessionId) throws TransportErrorException
TransportErrorExceptionprotected abstract String[] readMessages(ServerHttpRequest request) throws IOException
IOExceptionprotected abstract HttpStatus getResponseStatus()