com.github.dreamhead.moco.util.HttpHeaders Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moco-core Show documentation
Show all versions of moco-core Show documentation
Moco is an easy setup stub framework, mainly focusing on testing and integration.
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() {
}
}