public abstract class AbstractHttpSendingTransportHandler extends java.lang.Object implements ConfigurableTransportHandler, SockJsSessionFactory
Modifier and Type | Field and Description |
---|---|
protected Log |
logger |
private SockJsConfiguration |
sockJsConfig |
Constructor and Description |
---|
AbstractHttpSendingTransportHandler() |
Modifier and Type | Method and Description |
---|---|
protected abstract MediaType |
getContentType() |
protected abstract SockJsFrame.FrameFormat |
getFrameFormat(ServerHttpRequest request) |
SockJsConfiguration |
getSockJsConfig() |
void |
handleRequest(ServerHttpRequest request,
ServerHttpResponse response,
WebSocketHandler webSocketHandler,
AbstractSockJsSession session) |
protected void |
handleRequestInternal(ServerHttpRequest request,
ServerHttpResponse response,
AbstractHttpSockJsSession httpServerSession) |
void |
setSockJsConfiguration(SockJsConfiguration sockJsConfig) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTransportType
createSession
protected final Log logger
private SockJsConfiguration sockJsConfig
public void setSockJsConfiguration(SockJsConfiguration sockJsConfig)
setSockJsConfiguration
in interface ConfigurableTransportHandler
public SockJsConfiguration getSockJsConfig()
public final void handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler webSocketHandler, AbstractSockJsSession session) throws TransportErrorException
handleRequest
in interface TransportHandler
TransportErrorException
protected void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, AbstractHttpSockJsSession httpServerSession) throws TransportErrorException
TransportErrorException
protected abstract MediaType getContentType()
protected abstract SockJsFrame.FrameFormat getFrameFormat(ServerHttpRequest request)