16 |
|
XMLPacket nearlyEmptyPacket = new XMLPacket(); |
17 |
|
|
18 |
|
// Add some stuff to the valid packet (i.e. all essential info) |
19 |
< |
validPacket.addParam("machine_name", "raptor"); |
20 |
< |
validPacket.addParam("ip", "129.12.225.53"); |
21 |
< |
validPacket.addParam("seq_no", "552"); |
22 |
< |
validPacket.addParam("date", "934999665636"); |
19 |
> |
validPacket.addParam("packet.attributes.machine_name", "raptor"); |
20 |
> |
validPacket.addParam("packet.attributes.ip", "129.12.225.53"); |
21 |
> |
validPacket.addParam("packet.attributes.seq_no", "552"); |
22 |
> |
validPacket.addParam("packet.attributes.date", "934999665636"); |
23 |
|
|
24 |
|
// Add nothing to the empty packet |
25 |
|
|
26 |
|
// Add just the machine name to the nearly empty packet. |
27 |
< |
nearlyEmptyPacket.addParam("machine_name", "craptor"); |
27 |
> |
nearlyEmptyPacket.addParam("packet.attributes.machine_name", "craptor"); |
28 |
|
|
29 |
|
// Run the XMLPackets through the filter pipeline. |
30 |
|
System.out.println(""); |