Class WrapperChannel<T extends java.nio.channels.Channel>

  • 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.Channel
    Deprecated.
    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 T wrappedChannel
      Deprecated.
      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
      void close()
      Deprecated.
      Delegates to the wrapped channel.
      protected T getWrappedChannel()
      Deprecated.
      Returns the wrapped channel.
      boolean isOpen()
      Deprecated.
      Delegates to the wrapped channel.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.IOException
        Deprecated.
        Delegates to the wrapped channel.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.nio.channels.Channel
        Specified by:
        close in interface java.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:
        isOpen in interface java.nio.channels.Channel