All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dreamhead.moco.util.HttpHeaders Maven / Gradle / Ivy

Go to download

Moco is an easy setup stub framework, mainly focusing on testing and integration.

There is a newer version: 1.5.0
Show newest version
package com.github.dreamhead.moco.util;

import com.google.common.base.Predicate;

import java.util.Map;

public final class HttpHeaders {
    private static boolean isSameHeaderName(final String name, final String key) {
        return key.equalsIgnoreCase(name);
    }

    public static Predicate> isForHeaderName(final String key) {
        return new Predicate>() {
            @Override
            public boolean apply(final Map.Entry input) {
                return isSameHeaderName(input.getKey(), key);
            }
        };
    }

    private HttpHeaders() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy