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

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

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