return FilterMatchResponse.ABORT_NOT_FOUND; // block this request
case allow: default:
if (log.isDebugEnabled()) log.debug("preprocess: decision is ALLOW");
return FilterMatchResponse.NO_MATCH;
case filter:
if (log.isDebugEnabled()) log.debug("preprocess: decision is FILTER");
return getFilterMatchResponse(filter, decision);
}
}
@@ -152,15 +156,15 @@ public class BubbleBlockRuleDriver extends TrafficAnalyticsRuleDriver {
final BlockDecision decision = blockList.getDecision(request.getFqdn(), request.getUri(), contentType, true);
switch (decision.getDecisionType()) {
case block:
log.warn("doFilterRequest: preprocessed request was filtered, but ultimate decision was block, returning EMPTY_STREAM");
log.warn("doFilterRequest: preprocessed request was filtered, but ultimate decision was block (contentType="+contentType+"), returning EMPTY_STREAM");
return EMPTY_STREAM;
case allow:
log.warn("doFilterRequest: preprocessed request was filtered, but ultimate decision was allow, returning as-is");
log.warn("doFilterRequest: preprocessed request was filtered, but ultimate decision was allow (contentType="+contentType+"), returning as-is");
return in;
case filter:
if (!decision.hasSpecs()) {
// should never happen
log.warn("doFilterRequest: preprocessed request was filtered, but ultimate decision was filtered, but no filters provided, returning as-is");
log.warn("doFilterRequest: preprocessed request was filtered, but ultimate decision was filtered (contentType="+contentType+"), but no filters provided, returning as-is");
return in;
}
break;
@@ -170,7 +174,7 @@ public class BubbleBlockRuleDriver extends TrafficAnalyticsRuleDriver {