public class SockJsHttpRequestHandler extends Object implements 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)
Process the given request, generating a response.
|
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
HttpRequestHandlerhandleRequest in interface HttpRequestHandlerservletRequest - current HTTP requestservletResponse - current HTTP responseServletException - in case of general errorsIOException - in case of I/O errors