public abstract class AbstractHttpSendingTransportHandler extends TransportHandlerSupport implements TransportHandler, SockJsSessionFactory
logger
Constructor and Description |
---|
AbstractHttpSendingTransportHandler() |
Modifier and Type | Method and Description |
---|---|
protected String |
getCallbackParam(org.springframework.http.server.ServerHttpRequest request) |
protected abstract org.springframework.http.MediaType |
getContentType() |
protected abstract SockJsFrame.FrameFormat |
getFrameFormat(org.springframework.http.server.ServerHttpRequest request) |
void |
handleRequest(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
WebSocketHandler wsHandler,
WebSocketSession wsSession)
Handle the given request and delegate messages to the provided
WebSocketHandler . |
protected void |
handleRequestInternal(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
AbstractHttpSockJsSession sockJsSession) |
getSockJsServiceConfig, setSockJsServiceConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTransportType
createSession
public final void handleRequest(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.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(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response, AbstractHttpSockJsSession sockJsSession) throws SockJsException
SockJsException
protected abstract org.springframework.http.MediaType getContentType()
protected abstract SockJsFrame.FrameFormat getFrameFormat(org.springframework.http.server.ServerHttpRequest request)
protected final String getCallbackParam(org.springframework.http.server.ServerHttpRequest request)