ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/server/PluginManager/EnforceEssentialData__Plugin.java
(Generate patch)

Comparing experimental/server/PluginManager/EnforceEssentialData__Plugin.java (file contents):
Revision 1.1 by pjm2, Fri Dec 1 10:04:28 2000 UTC vs.
Revision 1.2 by pjm2, Fri Dec 1 14:29:29 2000 UTC

# Line 11 | Line 11 | class EnforceEssentialData__Plugin implements PluginFi
11      public boolean runFilter(XMLPacket packet){
12          
13          // return false if any of the essential data is not present.
14 <        if (packet.getParam("machine_name") == null
15 <                || packet.getParam("ip") == null
16 <                || packet.getParam("seq_no") == null
17 <                || packet.getParam("machine_name") == null){
14 >        if (packet.getParam("packet.attributes.machine_name") == null
15 >                || packet.getParam("packet.attributes.ip") == null
16 >                || packet.getParam("packet.attributes.seq_no") == null
17 >                || packet.getParam("packet.attributes.date") == null){
18              return false;
19          }
20          
21          // otherwise return true!
22          return true;
23          
24 +    }
25 +    
26 +    // return the String representation of what the filter does
27 +    public String getDescription(){
28 +        return "Rejects packets that do not have an ip, machine_name, seq_no and date specified as attributes of the root packet tag.";
29      }
30      
31   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines