Class OutgoingLoggingCallback

  • All Implemented Interfaces:
    org.apache.cxf.io.CachedOutputStreamCallback

    public class OutgoingLoggingCallback
    extends AbstractOutgoingCallback
    Callback class for outgoing logging.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Field Detail

      • m_Logger

        protected adams.core.logging.Logger m_Logger
        the logger to use for outputting the collected data.
    • Constructor Detail

      • OutgoingLoggingCallback

        public OutgoingLoggingCallback​(adams.core.logging.Logger logger,
                                       org.apache.cxf.message.Message msg,
                                       OutputStream os)
        Initializes the callback.
        Parameters:
        logger - the logger to use for outputting the data
        msg - the message to process
        os - the output stream
    • Method Detail

      • write

        protected void write​(org.apache.cxf.interceptor.LoggingMessage buffer)
        Outputs the buffer using its logger.
        Specified by:
        write in class AbstractOutgoingCallback
        Parameters:
        buffer - the buffer with the collected data