java.lang.Object
org.zalando.logbook.core.SecurityStrategy
- All Implemented Interfaces:
org.zalando.logbook.Strategy
@API(status=MAINTAINED)
public final class SecurityStrategy
extends Object
implements org.zalando.logbook.Strategy
A
SecurityStrategy is a strategy which is meant to be used in server-side environments to
give the best possible compromise between security and observability.
This strategy discards requests bodies.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.zalando.logbook.HttpRequestprocess(org.zalando.logbook.HttpRequest request) voidwrite(org.zalando.logbook.Correlation correlation, org.zalando.logbook.HttpRequest request, org.zalando.logbook.HttpResponse response, org.zalando.logbook.Sink sink) voidwrite(org.zalando.logbook.Precorrelation precorrelation, org.zalando.logbook.HttpRequest request, org.zalando.logbook.Sink sink) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.zalando.logbook.Strategy
process
-
Constructor Details
-
SecurityStrategy
public SecurityStrategy()
-
-
Method Details
-
process
public org.zalando.logbook.HttpRequest process(org.zalando.logbook.HttpRequest request) - Specified by:
processin interfaceorg.zalando.logbook.Strategy
-
write
public void write(org.zalando.logbook.Precorrelation precorrelation, org.zalando.logbook.HttpRequest request, org.zalando.logbook.Sink sink) - Specified by:
writein interfaceorg.zalando.logbook.Strategy
-
write
public void write(org.zalando.logbook.Correlation correlation, org.zalando.logbook.HttpRequest request, org.zalando.logbook.HttpResponse response, org.zalando.logbook.Sink sink) throws IOException - Specified by:
writein interfaceorg.zalando.logbook.Strategy- Throws:
IOException
-