Class LogFile
- java.lang.Object
-
- org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
-
- adams.flow.webservice.interceptor.incoming.AbstractInInterceptor
-
- adams.flow.webservice.interceptor.incoming.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 Summary
Fields Modifier and Type Field Description protected File
m_LogFile
the file to write to.-
Fields inherited from class adams.flow.webservice.interceptor.incoming.AbstractInInterceptor
m_Logger, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description LogFile()
Initializes the interceptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getLogFile()
Returns the log file to write to.void
handleMessage(org.apache.cxf.message.Message message)
Intercepts a message.protected void
initialize()
Initializes the members.void
setLogFile(File value)
Sets the log file to write to.-
Methods inherited from class adams.flow.webservice.interceptor.incoming.AbstractInInterceptor
configureLogger, getLogger, getLoggingLevel, initializeLogging, isInfoLoggingEnabled, isLoggingEnabled, setLoggingLevel
-
-
-
-
Field Detail
-
m_LogFile
protected File m_LogFile
the file to write to.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initialize
in classAbstractInInterceptor
-
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
-
-