Class OutgoingFileBasedCallback
- java.lang.Object
-
- adams.flow.rest.interceptor.outgoing.AbstractOutgoingCallback
-
- adams.flow.rest.interceptor.outgoing.OutgoingFileBasedCallback
-
- All Implemented Interfaces:
org.apache.cxf.io.CachedOutputStreamCallback
public class OutgoingFileBasedCallback extends AbstractOutgoingCallback
Callback class for outgoing logging.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected Filem_Filethe file to write the collected data to.-
Fields inherited from class adams.flow.rest.interceptor.outgoing.AbstractOutgoingCallback
m_Message, m_OrigStream
-
-
Constructor Summary
Constructors Constructor Description OutgoingFileBasedCallback(File file, org.apache.cxf.message.Message msg, OutputStream os)Initializes the callback.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidwrite(org.apache.cxf.interceptor.LoggingMessage buffer)Outputs the buffer using its logger.-
Methods inherited from class adams.flow.rest.interceptor.outgoing.AbstractOutgoingCallback
onClose, onFlush
-
-
-
-
Field Detail
-
m_File
protected File m_File
the file to write the collected data to.
-
-
Constructor Detail
-
OutgoingFileBasedCallback
public OutgoingFileBasedCallback(File file, org.apache.cxf.message.Message msg, OutputStream os)
Initializes the callback.- Parameters:
file- the file to write the data tomsg- the message to processos- the output stream
-
-
Method Detail
-
write
protected void write(org.apache.cxf.interceptor.LoggingMessage buffer)
Outputs the buffer using its logger.- Specified by:
writein classAbstractOutgoingCallback- Parameters:
buffer- the buffer with the collected data
-
-