Class LogFile

  • All Implemented Interfaces:
    adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>, org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

    public class LogFile
    extends AbstractInInterceptor
    Interceptor for incoming messages, writing them to a file.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Field Detail

      • m_LogFile

        protected File m_LogFile
        the file to write to.
    • Constructor Detail

      • LogFile

        public LogFile()
        Initializes the interceptor.
    • Method Detail

      • setLogFile

        public void setLogFile​(File value)
        Sets the log file to write to.
        Parameters:
        value - the file to write to
      • getLogFile

        public File getLogFile()
        Returns the log file to write to.
        Returns:
        the file to write to
      • handleMessage

        public void handleMessage​(org.apache.cxf.message.Message message)
                           throws org.apache.cxf.interceptor.Fault
        Intercepts a message. Interceptors should NOT invoke handleMessage or handleFault on the next interceptor - the interceptor chain will take care of this.
        Parameters:
        message -
        Throws:
        org.apache.cxf.interceptor.Fault