Class JSSServerSocketChannel

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.nio.channels.Channel, java.nio.channels.InterruptibleChannel, java.nio.channels.NetworkChannel

    public class JSSServerSocketChannel
    extends java.nio.channels.ServerSocketChannel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JSSSocketChannel accept()  
      JSSServerSocketChannel bind​(java.net.SocketAddress local, int backlog)  
      java.util.Collection<? extends java.util.EventListener> getListeners()
      Gets the current list of event listeners this SSLSocket will fire on certain events.
      java.net.SocketAddress getLocalAddress()  
      <T> T getOption​(java.net.SocketOption<T> name)  
      void implCloseSelectableChannel()  
      void implConfigureBlocking​(boolean block)  
      void setListeners​(java.util.Collection<? extends java.util.EventListener> listeners)
      Set the listeners this SSLSocket will fire on certain events.
      <T> JSSServerSocketChannel setOption​(java.net.SocketOption<T> name, T value)  
      JSSServerSocket socket()  
      java.util.Set<java.net.SocketOption<?>> supportedOptions()  
      • Methods inherited from class java.nio.channels.ServerSocketChannel

        bind, open, validOps
      • Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel

        blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register
      • Methods inherited from class java.nio.channels.SelectableChannel

        register
      • Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel

        begin, close, end, isOpen
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.nio.channels.Channel

        isOpen
    • Constructor Detail

      • JSSServerSocketChannel

        public JSSServerSocketChannel​(JSSServerSocket sslSocket,
                                      java.nio.channels.ServerSocketChannel parent,
                                      JSSEngine engine)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • JSSServerSocketChannel

        public JSSServerSocketChannel​(JSSServerSocket sslSocket,
                                      java.net.ServerSocket parentSocket,
                                      JSSEngine engine)
                               throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • accept

        public JSSSocketChannel accept()
                                throws java.io.IOException
        Specified by:
        accept in class java.nio.channels.ServerSocketChannel
        Throws:
        java.io.IOException
      • bind

        public JSSServerSocketChannel bind​(java.net.SocketAddress local,
                                           int backlog)
                                    throws java.io.IOException
        Specified by:
        bind in class java.nio.channels.ServerSocketChannel
        Throws:
        java.io.IOException
      • setListeners

        public void setListeners​(java.util.Collection<? extends java.util.EventListener> listeners)
        Set the listeners this SSLSocket will fire on certain events.
        See Also:
        JSSEngine.setListeners(Collection)
      • getListeners

        public java.util.Collection<? extends java.util.EventListener> getListeners()
        Gets the current list of event listeners this SSLSocket will fire on certain events.
        See Also:
        JSSEngine.getListeners()
      • getOption

        public <T> T getOption​(java.net.SocketOption<T> name)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • supportedOptions

        public java.util.Set<java.net.SocketOption<?>> supportedOptions()
      • setOption

        public <T> JSSServerSocketChannel setOption​(java.net.SocketOption<T> name,
                                                    T value)
                                             throws java.io.IOException
        Specified by:
        setOption in interface java.nio.channels.NetworkChannel
        Specified by:
        setOption in class java.nio.channels.ServerSocketChannel
        Throws:
        java.io.IOException
      • socket

        public JSSServerSocket socket()
        Specified by:
        socket in class java.nio.channels.ServerSocketChannel
      • getLocalAddress

        public java.net.SocketAddress getLocalAddress()
                                               throws java.io.IOException
        Specified by:
        getLocalAddress in interface java.nio.channels.NetworkChannel
        Specified by:
        getLocalAddress in class java.nio.channels.ServerSocketChannel
        Throws:
        java.io.IOException
      • implCloseSelectableChannel

        public void implCloseSelectableChannel()
                                        throws java.io.IOException
        Specified by:
        implCloseSelectableChannel in class java.nio.channels.spi.AbstractSelectableChannel
        Throws:
        java.io.IOException
      • implConfigureBlocking

        public void implConfigureBlocking​(boolean block)
                                   throws java.io.IOException
        Specified by:
        implConfigureBlocking in class java.nio.channels.spi.AbstractSelectableChannel
        Throws:
        java.io.IOException