87 |
|
XMLPacketMaker xmlPacketMaker = new XMLPacketMaker(xml); |
88 |
|
XMLPacket packet = xmlPacketMaker.createXMLPacket(); |
89 |
|
|
90 |
< |
if(packet != null && PluginFilterManager.getInstance().runFilters(packet)) { |
90 |
> |
if(packet != null) { |
91 |
|
// packet is not null |
92 |
|
// packet was not dropped by a plugin |
93 |
|
// ... best pass it on ! |
94 |
< |
_parent.receiveXML(xml); |
94 |
> |
if(PluginFilterManager.getInstance().runFilters(packet)) { |
95 |
> |
_parent.receiveXML(xml); |
96 |
> |
} |
97 |
> |
else { |
98 |
> |
// we filtered it |
99 |
> |
_logger.write(toString(), Logger.DEBUG, "An XML packet was sucessfully filtered from the system."); |
100 |
> |
} |
101 |
|
} |
102 |
|
else { |
103 |
< |
// either we had a null, or a plugin dropped it |
104 |
< |
_logger.write(toString(), Logger.DEBUG, "An XML packet was sucessfully filtered from the system."); |
103 |
> |
// we had a null |
104 |
> |
_logger.write(toString(), Logger.DEBUG, "An packet containing ill-parsing XML was rejected."); |
105 |
|
} |
106 |
|
} |
107 |
|
} |