Class AbstractOutgoingCallback

  • All Implemented Interfaces:
    Direct Known Subclasses:
    OutgoingFileBasedCallback, OutgoingLoggingCallback

    public abstract class AbstractOutgoingCallback
    extends Object
    Ancestor for callback classes for outgoing messages.
    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.
        msg - the message
        os - the output stream
    • Method Detail

      • onFlush

        public void onFlush​( cos)
        Not used.
        Specified by:
        onFlush in interface
      • onClose

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

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