Package io.undertow.servlet.websockets
Class WebSocketServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- io.undertow.servlet.websockets.WebSocketServlet
-
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class WebSocketServlet extends javax.servlet.http.HttpServlet- Author:
- Stuart Douglas
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSESSION_HANDLER
-
Constructor Summary
Constructors Constructor Description WebSocketServlet()WebSocketServlet(io.undertow.websockets.WebSocketConnectionCallback callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)protected java.util.List<io.undertow.websockets.core.protocol.Handshake>handshakes()voidinit(javax.servlet.ServletConfig config)-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
SESSION_HANDLER
public static final java.lang.String SESSION_HANDLER
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
handshakes
protected java.util.List<io.undertow.websockets.core.protocol.Handshake> handshakes()
-
-