Class LoggingReaderInterceptor

  • All Implemented Interfaces:
    jakarta.ws.rs.ext.ReaderInterceptor

    public class LoggingReaderInterceptor
    extends Object
    implements jakarta.ws.rs.ext.ReaderInterceptor
    Use to log the inbound stream.
    Author:
    Adrian Herscu
    • Constructor Detail

      • LoggingReaderInterceptor

        public LoggingReaderInterceptor​(Consumer<String> logger)
        Parameters:
        logger - the logger function to use
    • Method Detail

      • aroundReadFrom

        public Object aroundReadFrom​(jakarta.ws.rs.ext.ReaderInterceptorContext context)
                              throws IOException
        Specified by:
        aroundReadFrom in interface jakarta.ws.rs.ext.ReaderInterceptor
        Throws:
        IOException