requestConditionType = createType("request header", true);
responseConditionType = createType("response header", false);
}
private static IHttpConditionType createType(String label, final boolean flag) {
return new ConditionType(label, new StringMatchActionSet()) {
@Override
public IHttpCondition createConditionInstance(IHttpConditionMatchAction matchAction) {
return new ConditionHeader(flag, matchAction);
}
};