org.zalando.logbook.Logbook Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of logbook-api Show documentation
Show all versions of logbook-api Show documentation
HTTP request and response logging
package org.zalando.logbook;
import org.apiguardian.api.API;
import java.io.IOException;
import static org.apiguardian.api.API.Status.STABLE;
@API(status = STABLE)
public interface Logbook {
RequestWritingStage process(HttpRequest request) throws IOException;
RequestWritingStage process(HttpRequest request, Strategy strategy) throws IOException;
interface RequestWritingStage {
ResponseProcessingStage write() throws IOException;
}
interface ResponseProcessingStage {
ResponseWritingStage process(HttpResponse response) throws IOException;
}
interface ResponseWritingStage {
void write() throws IOException;
}
static Logbook create() {
return builder().build();
}
static LogbookCreator.Builder builder() {
return LogbookCreator.builder();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy