org.restlet.engine.io
Class TraceChannel<T extends SelectionChannel>
java.lang.Object
org.restlet.engine.io.WrapperChannel<T>
org.restlet.engine.io.WrapperSelectionChannel<T>
org.restlet.engine.io.TraceChannel<T>
- All Implemented Interfaces:
- Closeable, Channel, BlockableChannel, SelectionChannel
- Direct Known Subclasses:
- ReadableTraceChannel, WritableTraceChannel
public class TraceChannel<T extends SelectionChannel>
- extends WrapperSelectionChannel<T>
Filter byte channel that sends a copy of all data on the trace output stream.
It is important to inherit from SelectableChannel
as some framework
classes rely on this down the processing chain.
- Author:
- Jerome Louvel
TraceChannel
public TraceChannel(T wrappedChannel)
- Constructor.
- Parameters:
wrappedChannel
- The wrapped channel.
TraceChannel
public TraceChannel(T wrappedChannel,
OutputStream traceStream)
- Constructor.
- Parameters:
wrappedChannel
- The wrapped channel.traceStream
- The trace stream.
getTraceStream
public OutputStream getTraceStream()
- Returns the trace output stream to use if tracing is enabled.
- Returns:
- The trace output stream to use if tracing is enabled.
Copyright © 2005-2013 Restlet.