"' domain='" + xmlKey.getDomain() + "'.");
AccessFilterQos[] filterQos = keyMapping.getAccessFilterArr();
if (filterQos != null && filterQos.length > 0) {
if (log.isLoggable(Level.FINE)) log.fine("Found " + filterQos.length + " key specific filter rules in XmlKey ...");
for (int jj=0; jj<filterQos.length; jj++) {
I_AccessFilter filter = glob.getRequestBroker().getAccessPluginManager().getAccessFilter(
filterQos[jj].getType(),
filterQos[jj].getVersion(),
msgUnit.getContentMime(),
msgUnit.getContentMimeExtended());
if (log.isLoggable(Level.FINE)) log.fine("Checking filter='" + filterQos[jj].getQuery() + "' on message content='" +
msgUnit.getContentStr() + "'");
SessionInfo sessionInfo = null; // TODO: Pass sessionInfo here
if (filter != null && filter.match(sessionInfo, msgUnit, filterQos[jj].getQuery())) {
if (log.isLoggable(Level.FINE)) log.fine("Found master='" + nodeMasterInfo.getNodeId().getId() + "' stratum=" +
nodeMasterInfo.getStratum() + " for message '" + msgUnit.getLogId() + "' with filter='" + filterQos[jj].getQuery() + "'.");
return nodeMasterInfo; // Found the master nodeMasterInfo.getClusterNode();
}
}
}
else
return nodeMasterInfo; // Found the master nodeMasterInfo.getClusterNode();
}
}
// Check for user supplied filters <master><filter>... These are the filter based queries
AccessFilterQos[] filterQos = nodeMasterInfo.getAccessFilterArr();
if (log.isLoggable(Level.FINE)) log.fine("Found " + filterQos.length + " global filter rules ...");
for (int jj=0; jj<filterQos.length; jj++) {
I_AccessFilter filter = glob.getRequestBroker().getAccessPluginManager().getAccessFilter(
filterQos[jj].getType(),
filterQos[jj].getVersion(),
msgUnit.getContentMime(),
msgUnit.getContentMimeExtended());
if (log.isLoggable(Level.FINE)) log.fine("Checking filter='" + filterQos[jj].getQuery() + "' on message content='" +
msgUnit.getContentStr() + "'");
SessionInfo sessionInfo = null; // TODO: Pass sessionInfo here
if (filter != null && filter.match(sessionInfo, msgUnit, filterQos[jj].getQuery())) {
if (log.isLoggable(Level.FINE)) log.fine("Found master='" + nodeMasterInfo.getNodeId().getId() + "' stratum=" + nodeMasterInfo.getStratum() +
" for message '" + msgUnit.getLogId() + "' with filter='" + filterQos[jj].getQuery() + "'.");
return nodeMasterInfo; // Found the master nodeMasterInfo.getClusterNode();
}
}