com.undefinedlabs.scope.rules.headers.ServletHttpHeadersAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scope-rule-javax-servlet Show documentation
Show all versions of scope-rule-javax-servlet Show documentation
Scope is a APM for tests to give engineering teams unprecedented visibility into their CI process to quickly
identify, troubleshoot and fix failed builds.
This artifact contains the classes to instrument the Javax Servlet package.
package com.undefinedlabs.scope.rules.headers;
import com.undefinedlabs.scope.rules.http.HttpHeadersAdapter;
import java.util.Map;
public class ServletHttpHeadersAdapter implements HttpHeadersAdapter {
private final Map headers;
public ServletHttpHeadersAdapter(final Map headers) {
this.headers = headers;
}
@Override
public Iterable> iterator() {
return this.headers.entrySet();
}
}