Class LoggingWriterInterceptor
- java.lang.Object
-
- dev.aherscu.qa.testing.utils.rest.LoggingWriterInterceptor
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.WriterInterceptor
public class LoggingWriterInterceptor extends Object implements jakarta.ws.rs.ext.WriterInterceptor
Use to log the outbound stream.- Author:
- Adrian Herscu
-
-
Constructor Summary
Constructors Constructor Description LoggingWriterInterceptor(Consumer<String> logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
aroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context)
-
-
-
Method Detail
-
aroundWriteTo
public void aroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context) throws IOException
- Specified by:
aroundWriteTo
in interfacejakarta.ws.rs.ext.WriterInterceptor
- Throws:
IOException
-
-