Package net.i2p.sam
Class SSLServerSocketChannel
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,InterruptibleChannel,NetworkChannel
class SSLServerSocketChannel extends ServerSocketChannel
Simple wrapper for a SSLServerSocket. Cannot be used for asynch ops.- Since:
- 0.9.24
-
-
Constructor Summary
Constructors Constructor Description SSLServerSocketChannel(SSLServerSocket socket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketChannelaccept()ServerSocketChannelbind(SocketAddress local, int backlog)requires Java 7SocketAddressgetLocalAddress()<T> TgetOption(SocketOption<T> name)voidimplCloseSelectableChannel()voidimplConfigureBlocking(boolean block)<T> ServerSocketChannelsetOption(SocketOption<T> name, T value)requires Java 7ServerSocketsocket()Set<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
-
-
-
-
Constructor Detail
-
SSLServerSocketChannel
public SSLServerSocketChannel(SSLServerSocket socket)
-
-
Method Detail
-
accept
public SocketChannel accept() throws IOException
- Specified by:
acceptin classServerSocketChannel- Throws:
IOException
-
socket
public ServerSocket socket()
- Specified by:
socketin classServerSocketChannel
-
bind
public ServerSocketChannel bind(SocketAddress local, int backlog)
requires Java 7- Specified by:
bindin classServerSocketChannel
-
setOption
public <T> ServerSocketChannel setOption(SocketOption<T> name, T value)
requires Java 7- Specified by:
setOptionin interfaceNetworkChannel- Specified by:
setOptionin classServerSocketChannel
-
implCloseSelectableChannel
public void implCloseSelectableChannel() throws IOException- Specified by:
implCloseSelectableChannelin classAbstractSelectableChannel- Throws:
IOException
-
implConfigureBlocking
public void implConfigureBlocking(boolean block) throws IOException- Specified by:
implConfigureBlockingin classAbstractSelectableChannel- Throws:
IOException
-
getLocalAddress
public SocketAddress getLocalAddress()
- Specified by:
getLocalAddressin interfaceNetworkChannel- Specified by:
getLocalAddressin classServerSocketChannel
-
getOption
public <T> T getOption(SocketOption<T> name)
-
supportedOptions
public Set<SocketOption<?>> supportedOptions()
-
-