All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zalando.logbook.Sink Maven / Gradle / Ivy

There is a newer version: 3.10.0
Show newest version
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