Class JBossWebSocketHandler

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, org.jboss.servlet.http.HttpEventServlet

    public class JBossWebSocketHandler
    extends org.atmosphere.jboss.as.websockets.servlet.WebSocketServlet
    Dispatches JBoss websocket events to Atmosphere's WebSocketProcessor. This websocket handler is based Mike Brock's websockets implementation.
    Author:
    Péter Miklós
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void onReceivedFrame​(org.atmosphere.jboss.as.websockets.WebSocket socket)  
      protected void onSocketClosed​(org.atmosphere.jboss.as.websockets.WebSocket socket)  
      protected void onSocketOpened​(org.atmosphere.jboss.as.websockets.WebSocket socket)  
      • Methods inherited from class org.atmosphere.jboss.as.websockets.servlet.WebSocketServlet

        doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, event, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.servlet.Servlet

        destroy, getServletConfig, getServletInfo, init
    • Constructor Detail

      • JBossWebSocketHandler

        public JBossWebSocketHandler​(AtmosphereConfig config)
    • Method Detail

      • onSocketOpened

        protected void onSocketOpened​(org.atmosphere.jboss.as.websockets.WebSocket socket)
                               throws java.io.IOException
        Overrides:
        onSocketOpened in class org.atmosphere.jboss.as.websockets.servlet.WebSocketServlet
        Throws:
        java.io.IOException
      • onSocketClosed

        protected void onSocketClosed​(org.atmosphere.jboss.as.websockets.WebSocket socket)
                               throws java.io.IOException
        Overrides:
        onSocketClosed in class org.atmosphere.jboss.as.websockets.servlet.WebSocketServlet
        Throws:
        java.io.IOException
      • onReceivedFrame

        protected void onReceivedFrame​(org.atmosphere.jboss.as.websockets.WebSocket socket)
                                throws java.io.IOException
        Overrides:
        onReceivedFrame in class org.atmosphere.jboss.as.websockets.servlet.WebSocketServlet
        Throws:
        java.io.IOException