Class JBossWebSocketHandler

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.atmosphere.jboss.as.websockets.servlet.WebSocketServlet
org.atmosphere.container.JBossWebSocketHandler
All Implemented Interfaces:
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:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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 Details

  • Method Details

    • onSocketOpened

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

      protected void onSocketClosed(org.atmosphere.jboss.as.websockets.WebSocket socket)
      Overrides:
      onSocketClosed in class org.atmosphere.jboss.as.websockets.servlet.WebSocketServlet
    • onReceivedFrame

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