
uk.co.mruoc.camunda.client.header.CompositeHeaderPopulator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camunda-rest-client Show documentation
Show all versions of camunda-rest-client Show documentation
Template repo to speed up creating new library projects
The newest version!
package uk.co.mruoc.camunda.client.header;
import java.net.http.HttpRequest;
import java.util.Collection;
import java.util.List;
public class CompositeHeaderPopulator implements HeaderPopulator {
private final Collection populators;
public CompositeHeaderPopulator(HeaderPopulator... populators) {
this(List.of(populators));
}
public CompositeHeaderPopulator(Collection populators) {
this.populators = populators;
}
@Override
public HttpRequest.Builder populate(HttpRequest.Builder builder) {
populators.forEach(populator -> populator.populate(builder));
return builder;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy