Class LogURL

  • 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 LogURL
    extends AbstractOutInterceptor
    Interceptor for outgoing messages that simply logs the outgoing URL.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Field Detail

      • m_LastURL

        protected String m_LastURL
        the last url.
    • Constructor Detail

      • LogURL

        public LogURL()
        Initializes the interceptor.
    • Method Detail

      • 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
      • getLastURL

        public String getLastURL()
        Returns the last URL encountered.
        Returns:
        the URL, null if none yet set