public class WebSocketChatServlet extends WebSocketServlet implements WebSocketCreator
| Modifier and Type | Class and Description |
|---|---|
class |
WebSocketChatServlet.ChatWebSocket
Create a WebSocket that echo's back the message to all other members of the servlet.
|
| Constructor and Description |
|---|
WebSocketChatServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(WebSocketServletFactory factory) |
Object |
createWebSocket(ServletUpgradeRequest req,
ServletUpgradeResponse resp)
Create a websocket from the incoming request.
|
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
destroy, init, servicedoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicegetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doGet in class HttpServletServletExceptionIOExceptionpublic Object createWebSocket(ServletUpgradeRequest req, ServletUpgradeResponse resp)
WebSocketCreatorcreateWebSocket in interface WebSocketCreatorreq - the request detailsresp - the response detailspublic void configure(WebSocketServletFactory factory)
configure in class WebSocketServletCopyright © 1995-2015 Webtide. All Rights Reserved.