Class AbstractOutgoingCallback

  • All Implemented Interfaces:
    org.apache.cxf.io.CachedOutputStreamCallback
    Direct Known Subclasses:
    OutgoingFileBasedCallback, OutgoingLoggingCallback

    public abstract class AbstractOutgoingCallback
    extends Object
    implements org.apache.cxf.io.CachedOutputStreamCallback
    Ancestor for callback classes for outgoing messages.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz), Apache CXF
    • Field Detail

      • m_Message

        protected final org.apache.cxf.message.Message m_Message
        the message this callback is for.
      • m_OrigStream

        protected final OutputStream m_OrigStream
        the output stream to use.
    • Constructor Detail

      • AbstractOutgoingCallback

        public AbstractOutgoingCallback​(org.apache.cxf.message.Message msg,
                                        OutputStream os)
        Initializes the callback.
        Parameters:
        msg - the message
        os - the output stream
    • Method Detail

      • onFlush

        public void onFlush​(org.apache.cxf.io.CachedOutputStream cos)
        Not used.
        Specified by:
        onFlush in interface org.apache.cxf.io.CachedOutputStreamCallback
      • onClose

        public void onClose​(org.apache.cxf.io.CachedOutputStream cos)
        Finishes up writing the data to a buffer and calling write(LoggingMessage) with the buffer.
        Specified by:
        onClose in interface org.apache.cxf.io.CachedOutputStreamCallback
        Parameters:
        cos - the output stream
        See Also:
        write(LoggingMessage)
      • write

        protected abstract void write​(org.apache.cxf.interceptor.LoggingMessage buffer)
        Callback specific handling of the generated buffer.
        Parameters:
        buffer - the buffer with the collected data