Class TraceChannel<T extends SelectionChannel>

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.nio.channels.Channel, BlockableChannel, SelectionChannel
    Direct Known Subclasses:
    ReadableTraceChannel, WritableTraceChannel

    @Deprecated
    public class TraceChannel<T extends SelectionChannel>
    extends WrapperSelectionChannel<T>
    Deprecated.
    Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.
    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.
    • Field Detail

      • traceStream

        private java.io.OutputStream traceStream
        Deprecated.
        The trace output stream to use if tracing is enabled.
    • Constructor Detail

      • TraceChannel

        public TraceChannel​(T wrappedChannel)
        Deprecated.
        Constructor.
        Parameters:
        wrappedChannel - The wrapped channel.
      • TraceChannel

        public TraceChannel​(T wrappedChannel,
                            java.io.OutputStream traceStream)
        Deprecated.
        Constructor.
        Parameters:
        wrappedChannel - The wrapped channel.
        traceStream - The trace stream.
    • Method Detail

      • getTraceStream

        public java.io.OutputStream getTraceStream()
        Deprecated.
        Returns the trace output stream to use if tracing is enabled.
        Returns:
        The trace output stream to use if tracing is enabled.