
uk.co.mruoc.camunda.client.header.AuthorizationHeaderPopulator 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.function.Supplier;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
public class AuthorizationHeaderPopulator implements HeaderPopulator {
private final Supplier tokenSupplier;
@Override
public HttpRequest.Builder populate(HttpRequest.Builder builder) {
builder.header("authorization", tokenSupplier.get());
return builder;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy