Package org.zalando.logbook
Class StreamHttpLogWriter
- java.lang.Object
-
- org.zalando.logbook.StreamHttpLogWriter
-
- All Implemented Interfaces:
HttpLogWriter
@API(status=STABLE) public final class StreamHttpLogWriter extends Object implements HttpLogWriter
-
-
Constructor Summary
Constructors Constructor Description StreamHttpLogWriter()
StreamHttpLogWriter(PrintStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(Correlation correlation, String response)
void
write(Precorrelation precorrelation, String request)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.zalando.logbook.HttpLogWriter
isActive
-
-
-
-
Constructor Detail
-
StreamHttpLogWriter
public StreamHttpLogWriter()
-
StreamHttpLogWriter
public StreamHttpLogWriter(PrintStream stream)
-
-
Method Detail
-
write
public void write(Precorrelation precorrelation, String request) throws IOException
- Specified by:
write
in interfaceHttpLogWriter
- Throws:
IOException
-
write
public void write(Correlation correlation, String response) throws IOException
- Specified by:
write
in interfaceHttpLogWriter
- Throws:
IOException
-
-