org.atmosphere.container
Class JBossWebSocketHandler

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.atmosphere.jboss.as.websockets.servlet.WebSocketServlet
              extended by 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:
https://github.com/mikebrock/jboss-websockets, Serialized Form

Constructor Summary
JBossWebSocketHandler(AtmosphereConfig config)
           
 
Method Summary
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 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)
                       throws IOException
Overrides:
onSocketClosed in class org.atmosphere.jboss.as.websockets.servlet.WebSocketServlet
Throws:
IOException

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


Copyright © 2013. All Rights Reserved.