Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.devbliss.doctest.utils;
 import java.util.List;
 import java.util.Map;

Headershelper filters the original request or response headers depending on the headers for the documentation The original headers will be transformed to lower case in the ApiTester project by ApiTestUtil

katharinairrgang, bmary
public class HeadersHelper {
    public Map<StringStringfilter(Map<StringStringoriginalHeaders,
            List<StringheadersToShow) {
        Map<StringStringheaders = new HashMap<StringString>();
        for (String header : headersToShow) {
            String lowerCasedHeader = header.toLowerCase();
            if (originalHeaders.containsKey(lowerCasedHeader)) {
        return headers;
New to GrepCode? Check out our FAQ X