Class OutgoingFileBasedCallback

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

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

      • m_File

        protected File m_File
        the file to write the collected data to.
    • Constructor Detail

      • OutgoingFileBasedCallback

        public OutgoingFileBasedCallback​(File file,
                                         org.apache.cxf.message.Message msg,
                                         OutputStream os)
        Initializes the callback.
        Parameters:
        file - the file to write the data to
        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