private boolean compareHeaders()

in tiles-request-api/src/main/java/org/apache/tiles/request/collection/HeaderValuesMap.java [229:238]


    private boolean compareHeaders(String name, Set<String> testSet) {
        Enumeration<String> values = request.getValues(name);
        boolean matched = true;
        while (values.hasMoreElements() && matched) {
            String currentValue = values.nextElement();
            matched = testSet.remove(currentValue);
        }
        matched = matched && testSet.isEmpty();
        return matched;
    }