Package org.zalando.logbook.internal
Class ExceptionThrowingLogbookFactory
java.lang.Object
org.zalando.logbook.internal.ExceptionThrowingLogbookFactory
- All Implemented Interfaces:
LogbookFactory
This class is a default implementation of LogbookFactory
.
It is loaded by default throw Java ServiceLoader
mechanism
if there are no other implementation of LogbookFactory
found on the classpath. This is because the priority of this class is set to
Integer.MIN_VALUE
.
This factory creates an instance of ExceptionThrowingLogbook
,
whose methods throw UnsupportedOperationException
.
-
Field Summary
Fields inherited from interface org.zalando.logbook.LogbookFactory
INSTANCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(Predicate<HttpRequest> condition, CorrelationId correlationId, QueryFilter queryFilter, PathFilter pathFilter, HeaderFilter headerFilter, BodyFilter bodyFilter, RequestFilter requestFilter, ResponseFilter responseFilter, Strategy strategy, Sink sink) int
-
Constructor Details
-
ExceptionThrowingLogbookFactory
public ExceptionThrowingLogbookFactory()
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfaceLogbookFactory
-
create
public Logbook create(@Nullable Predicate<HttpRequest> condition, @Nullable CorrelationId correlationId, @Nullable QueryFilter queryFilter, @Nullable PathFilter pathFilter, @Nullable HeaderFilter headerFilter, @Nullable BodyFilter bodyFilter, @Nullable RequestFilter requestFilter, @Nullable ResponseFilter responseFilter, @Nullable Strategy strategy, @Nullable Sink sink) - Specified by:
create
in interfaceLogbookFactory
-