@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;
}