Package org.jwebsocket.kit

Examples of org.jwebsocket.kit.PlugInResponse


  @Override
  public PlugInResponse processPacket(WebSocketConnector aConnector, WebSocketPacket aDataPacket) {
    if (mLog.isDebugEnabled()) {
      mLog.debug("Processing packet for plug-ins on connector '" + aConnector.getId() + "'...");
    }
    PlugInResponse lPluginResponse = new PlugInResponse();
    for (WebSocketPlugIn lPlugIn : getPlugIns()) {
      try {
        /*
        if (log.isDebugEnabled()) {
        log.debug("Processing packet for plug-in " + plugIn + "...");
        }
         */
        lPlugIn.processPacket(lPluginResponse, aConnector, aDataPacket);
      } catch (Exception ex) {
        mLog.error("Processing packet on connector '" + aConnector.getId() + "': " + ex.getClass().getSimpleName() + ": " + ex.getMessage());
      }
      if (lPluginResponse.isChainAborted()) {
        break;
      }
    }
    return lPluginResponse;
  }
View Full Code Here


   * @param aConnector
   * @param aToken
   * @return
   */
  public PlugInResponse processToken(WebSocketConnector aConnector, Token aToken) {
    PlugInResponse lPluginResponse = new PlugInResponse();
    for (WebSocketPlugIn plugIn : getPlugIns()) {
      try {
        ((TokenPlugIn) plugIn).processToken(lPluginResponse, aConnector, aToken);
      } catch (Exception ex) {
        log.error("(plugin '" + ((TokenPlugIn) plugIn).getNamespace() + "')" + ex.getClass().getSimpleName() + ": " + ex.getMessage());
      }
      if (lPluginResponse.isChainAborted()) {
        break;
      }
    }
    return lPluginResponse;
  }
View Full Code Here

TOP

Related Classes of org.jwebsocket.kit.PlugInResponse

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.