--- experimental/server/PluginManager/EnforceEssentialData__Plugin.java 2000/12/01 10:04:28 1.1 +++ experimental/server/PluginManager/EnforceEssentialData__Plugin.java 2000/12/01 14:29:29 1.2 @@ -11,16 +11,21 @@ class EnforceEssentialData__Plugin implements PluginFi public boolean runFilter(XMLPacket packet){ // return false if any of the essential data is not present. - if (packet.getParam("machine_name") == null - || packet.getParam("ip") == null - || packet.getParam("seq_no") == null - || packet.getParam("machine_name") == null){ + if (packet.getParam("packet.attributes.machine_name") == null + || packet.getParam("packet.attributes.ip") == null + || packet.getParam("packet.attributes.seq_no") == null + || packet.getParam("packet.attributes.date") == null){ return false; } // otherwise return true! return true; + } + + // return the String representation of what the filter does + public String getDescription(){ + return "Rejects packets that do not have an ip, machine_name, seq_no and date specified as attributes of the root packet tag."; } } \ No newline at end of file