Package org.jwebsocket.kit

Examples of org.jwebsocket.kit.WebSocketServerEvent


      // PlugInResponse response = new PlugInResponse();
      // plugInChain.processPacket(response, aConnector, aDataPacket);

      // forward the token to the listener chain
      List<WebSocketServerListener> lListeners = getListeners();
      WebSocketServerEvent lEvent = new WebSocketServerEvent(aConnector, this);
      for (WebSocketServerListener lListener : lListeners) {
        if (lListener != null && lListener instanceof WebSocketServerListener) {
          ((WebSocketServerListener) lListener).processPacket(lEvent, aDataPacket);
        }
      }
View Full Code Here


  @Override
  public void connectorStarted(WebSocketConnector aConnector) {
    // this method is supposed to be overwritten by descending classes.
    // e.g. to notify the overlying appplications or plug-ins
    // about the connectorStarted event
    WebSocketServerEvent lEvent = new WebSocketServerEvent(aConnector, this);
    for (WebSocketServerListener lListener : mListeners) {
      if (lListener != null) {
        lListener.processOpened(lEvent);
      }
    }
View Full Code Here

  @Override
  public void connectorStopped(WebSocketConnector aConnector, CloseReason aCloseReason) {
    // this method is supposed to be overwritten by descending classes.
    // e.g. to notify the overlying appplications or plug-ins
    // about the connectorStopped event
    WebSocketServerEvent lEvent = new WebSocketServerEvent(aConnector, this);
    for (WebSocketServerListener lListener : mListeners) {
      if (lListener != null) {
        lListener.processClosed(lEvent);
      }
    }
View Full Code Here

   * {@inheritDoc }
   */
  @Override
  public void processPacket(WebSocketEngine aEngine, WebSocketConnector aConnector, WebSocketPacket aDataPacket) {
    // this method is supposed to be overwritten by descending classes.
    WebSocketServerEvent lEvent = new WebSocketServerEvent(aConnector, this);
    for (WebSocketServerListener lListener : getListeners()) {
      if (lListener != null) {
        lListener.processPacket(lEvent, aDataPacket);
      }
    }
View Full Code Here

TOP

Related Classes of org.jwebsocket.kit.WebSocketServerEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.