/** * Return declared "params" conditions but only among those that also * match the "methods", "consumes", and "params" conditions. */ public List<String[]> getParamConditions() { List<String[]> result = new ArrayList<>(); for (PartialMatch match : this.partialMatches) { if (match.hasProducesMatch()) { Set<NameValueExpression<String>> set = match.getInfo().getParamsCondition().getExpressions(); if (!CollectionUtils.isEmpty(set)) { int i = 0; String[] array = new String[set.size()]; for (NameValueExpression<String> expression : set) { array[i++] = expression.toString(); } result.add(array); } } } return result; }
/** * Return declared "params" conditions but only among those that also * match the "methods", "consumes", and "params" conditions. */ public List<String[]> getParamConditions() { List<String[]> result = new ArrayList<>(); for (PartialMatch match : this.partialMatches) { if (match.hasProducesMatch()) { Set<NameValueExpression<String>> set = match.getInfo().getParamsCondition().getExpressions(); if (!CollectionUtils.isEmpty(set)) { int i = 0; String[] array = new String[set.size()]; for (NameValueExpression<String> expression : set) { array[i++] = expression.toString(); } result.add(array); } } } return result; }
/** * Return declared "params" conditions but only among those that also * match the "methods", "consumes", and "params" conditions. */ public List<String[]> getParamConditions() { List<String[]> result = new ArrayList<String[]>(); for (PartialMatch match : this.partialMatches) { if (match.hasProducesMatch()) { Set<NameValueExpression<String>> set = match.getInfo().getParamsCondition().getExpressions(); if (!CollectionUtils.isEmpty(set)) { int i = 0; String[] array = new String[set.size()]; for (NameValueExpression<String> expression : set) { array[i++] = expression.toString(); } result.add(array); } } } return result; }
public boolean hasParamsMatch() { return (hasProducesMatch() && this.paramsMatch); }
/** * Any partial matches for "methods", "consumes", and "produces"? */ public boolean hasProducesMismatch() { for (PartialMatch match : this.partialMatches) { if (match.hasProducesMatch()) { return false; } } return true; }
public boolean hasParamsMatch() { return (hasProducesMatch() && this.paramsMatch); }
/** * Any partial matches for "methods", "consumes", and "produces"? */ public boolean hasProducesMismatch() { for (PartialMatch match : this.partialMatches) { if (match.hasProducesMatch()) { return false; } } return true; }
public boolean hasParamsMatch() { return (hasProducesMatch() && this.paramsMatch); }
/** * Any partial matches for "methods", "consumes", and "produces"? */ public boolean hasProducesMismatch() { for (PartialMatch match : this.partialMatches) { if (match.hasProducesMatch()) { return false; } } return true; }