
org.mockserver.model.Headers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockserver-core Show documentation
Show all versions of mockserver-core Show documentation
Functionality used by all MockServer modules for matching and expectations
package org.mockserver.model;
import java.util.Collection;
import java.util.List;
/**
* @author jamesdbloom
*/
public class Headers extends KeysToMultiValues {
public Headers(List headers) {
withEntries(headers);
}
public Headers(Header... headers) {
withEntries(headers);
}
@Override
public Header build(NottableString name, Collection values) {
return new Header(name, values);
}
public Headers withKeyMatchStyle(KeyMatchStyle keyMatchStyle) {
super.withKeyMatchStyle(keyMatchStyle);
return this;
}
@SuppressWarnings("MethodDoesntCallSuperMethod")
public Headers clone() {
return new Headers().withEntries(getEntries());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy