org.zalando.logbook.Sink 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 java.io.IOException;
public interface Sink {
default boolean isActive() {
return true;
}
void write(Precorrelation precorrelation, HttpRequest request) throws IOException;
void write(Correlation correlation, HttpRequest request, HttpResponse response) throws IOException;
default void writeBoth(final Correlation correlation, final HttpRequest request, final HttpResponse response)
throws IOException {
write(correlation, request);
write(correlation, request, response);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy