Class AbstractOutgoingCallback
- java.lang.Object
-
- adams.flow.rest.interceptor.outgoing.AbstractOutgoingCallback
-
- All Implemented Interfaces:
org.apache.cxf.io.CachedOutputStreamCallback
- Direct Known Subclasses:
OutgoingFileBasedCallback
,OutgoingLoggingCallback
public abstract class AbstractOutgoingCallback extends Object implements org.apache.cxf.io.CachedOutputStreamCallback
Ancestor for callback classes for outgoing messages.- Author:
- FracPete (fracpete at waikato dot ac dot nz), Apache CXF
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.cxf.message.Message
m_Message
the message this callback is for.protected OutputStream
m_OrigStream
the output stream to use.
-
Constructor Summary
Constructors Constructor Description AbstractOutgoingCallback(org.apache.cxf.message.Message msg, OutputStream os)
Initializes the callback.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
onClose(org.apache.cxf.io.CachedOutputStream cos)
Finishes up writing the data to a buffer and callingwrite(LoggingMessage)
with the buffer.void
onFlush(org.apache.cxf.io.CachedOutputStream cos)
Not used.protected abstract void
write(org.apache.cxf.interceptor.LoggingMessage buffer)
Callback specific handling of the generated buffer.
-
-
-
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.- Parameters:
msg
- the messageos
- the output stream
-
-
Method Detail
-
onFlush
public void onFlush(org.apache.cxf.io.CachedOutputStream cos)
Not used.- Specified by:
onFlush
in interfaceorg.apache.cxf.io.CachedOutputStreamCallback
-
onClose
public void onClose(org.apache.cxf.io.CachedOutputStream cos)
Finishes up writing the data to a buffer and callingwrite(LoggingMessage)
with the buffer.- Specified by:
onClose
in interfaceorg.apache.cxf.io.CachedOutputStreamCallback
- Parameters:
cos
- the output stream- See Also:
write(LoggingMessage)
-
write
protected abstract void write(org.apache.cxf.interceptor.LoggingMessage buffer)
Callback specific handling of the generated buffer.- Parameters:
buffer
- the buffer with the collected data
-
-