public class SockJsHttpRequestHandler extends Object implements org.springframework.web.HttpRequestHandler
HttpRequestHandler
that allows mapping a SockJsService
to requests
in a Servlet container.Constructor and Description |
---|
SockJsHttpRequestHandler(SockJsService sockJsService,
WebSocketHandler webSocketHandler)
Create a new SockJsHttpRequestHandler.
|
Modifier and Type | Method and Description |
---|---|
SockJsService |
getSockJsService()
Return the
SockJsService . |
WebSocketHandler |
getWebSocketHandler()
Return the
WebSocketHandler . |
void |
handleRequest(HttpServletRequest servletRequest,
HttpServletResponse servletResponse) |
public SockJsHttpRequestHandler(SockJsService sockJsService, WebSocketHandler webSocketHandler)
sockJsService
- the SockJS servicewebSocketHandler
- the websocket handlerpublic SockJsService getSockJsService()
SockJsService
.public WebSocketHandler getWebSocketHandler()
WebSocketHandler
.public void handleRequest(HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws ServletException, IOException
handleRequest
in interface org.springframework.web.HttpRequestHandler
ServletException
IOException