org.granite.gravity.tomcat
Class TomcatWebSocketServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.catalina.websocket.WebSocketServlet
              extended by org.granite.gravity.tomcat.TomcatWebSocketServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class TomcatWebSocketServlet
extends WebSocketServlet

See Also:
Serialized Form

Constructor Summary
TomcatWebSocketServlet()
           
 
Method Summary
protected  StreamInbound createWebSocketInbound(String protocol, HttpServletRequest request)
           
 void init(ServletConfig config)
           
protected  String selectSubProtocol(List<String> subProtocols)
           
 
Methods inherited from class org.apache.catalina.websocket.WebSocketServlet
doGet, verifyOrigin
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TomcatWebSocketServlet

public TomcatWebSocketServlet()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException

selectSubProtocol

protected String selectSubProtocol(List<String> subProtocols)
Overrides:
selectSubProtocol in class WebSocketServlet

createWebSocketInbound

protected StreamInbound createWebSocketInbound(String protocol,
                                               HttpServletRequest request)
Specified by:
createWebSocketInbound in class WebSocketServlet