private void addRequestIdConditionRule(long requestId) {
if(contentProvider == null || contentProvider.getConditionSet() == null) {
return;
}
final IHttpConditionSet conditionSet = contentProvider.getConditionSet();
final IHttpConditionType type = conditionSet.getConditionManager().getConditionTypeByName("request id");
final IHttpConditionMatchAction matchAction = type.getMatchActionByName("equals");
((IHttpConditionIntegerMatchAction) matchAction).setInteger((int) requestId);
if(requestIdCondition != null) {
conditionSet.removeTemporaryCondition(requestIdCondition, false);
}
requestIdCondition = type.createConditionInstance(matchAction);
requestIdCondition.setSufficient(true);
conditionSet.appendTemporaryCondition(requestIdCondition, true);
}