Class WrapperChannel<T extends java.nio.channels.Channel>
- java.lang.Object
-
- org.restlet.ext.nio.internal.channel.WrapperChannel<T>
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.nio.channels.Channel
- Direct Known Subclasses:
ReadableChunkingChannel,ReadableSizedChannel,WrapperSelectionChannel,WrapperSocketChannel
@Deprecated public class WrapperChannel<T extends java.nio.channels.Channel> extends java.lang.Object implements java.nio.channels.ChannelDeprecated.Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.Wrapper channel.
-
-
Field Summary
Fields Modifier and Type Field Description private TwrappedChannelDeprecated.The wrapped channel.
-
Constructor Summary
Constructors Constructor Description WrapperChannel(T wrappedChannel)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.Delegates to the wrapped channel.protected TgetWrappedChannel()Deprecated.Returns the wrapped channel.booleanisOpen()Deprecated.Delegates to the wrapped channel.
-
-
-
Field Detail
-
wrappedChannel
private T extends java.nio.channels.Channel wrappedChannel
Deprecated.The wrapped channel.
-
-
Constructor Detail
-
WrapperChannel
public WrapperChannel(T wrappedChannel)
Deprecated.Constructor.- Parameters:
wrappedChannel- The wrapped channel.
-
-
Method Detail
-
close
public void close() throws java.io.IOExceptionDeprecated.Delegates to the wrapped channel.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.nio.channels.Channel- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
getWrappedChannel
protected T getWrappedChannel()
Deprecated.Returns the wrapped channel.- Returns:
- The wrapped channel.
-
isOpen
public boolean isOpen()
Deprecated.Delegates to the wrapped channel.- Specified by:
isOpenin interfacejava.nio.channels.Channel
-
-