Class TraceChannel<T extends SelectionChannel>
- java.lang.Object
-
- org.restlet.ext.nio.internal.channel.WrapperChannel<T>
-
- org.restlet.ext.nio.internal.channel.WrapperSelectionChannel<T>
-
- org.restlet.ext.nio.internal.channel.TraceChannel<T>
-
- 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 fromSelectableChannelas some framework classes rely on this down the processing chain.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.OutputStreamtraceStreamDeprecated.The trace output stream to use if tracing is enabled.
-
Constructor Summary
Constructors Constructor Description TraceChannel(T wrappedChannel)Deprecated.Constructor.TraceChannel(T wrappedChannel, java.io.OutputStream traceStream)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.io.OutputStreamgetTraceStream()Deprecated.Returns the trace output stream to use if tracing is enabled.-
Methods inherited from class org.restlet.ext.nio.internal.channel.WrapperSelectionChannel
getRegistration, isBlocking, setRegistration, toString
-
Methods inherited from class org.restlet.ext.nio.internal.channel.WrapperChannel
close, getWrappedChannel, isOpen
-
-
-
-
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.
-
-