class SSLServerSocketChannel extends ServerSocketChannel
| Constructor and Description |
|---|
SSLServerSocketChannel(SSLServerSocket socket)Create a new SSLServerSocketChannel wrapping the given SSL server socket. |
| Modifier and Type | Method and Description |
|---|---|
SocketChannel | accept()Accept a new SSL connection and wrap it in an SSLSocketChannel. |
ServerSocketChannel | bind(SocketAddress local,
int backlog)Bind is not supported by this wrapper. |
SocketAddress | getLocalAddress()Get the local socket address of the underlying server socket. |
<T> T | getOption(SocketOption<T> name)Get the value of a socket option. |
void | implCloseSelectableChannel()Close the underlying SSL server socket. |
void | implConfigureBlocking(boolean block)Configure the blocking mode. |
<T> ServerSocketChannel | setOption(SocketOption<T> name,
T value)Set a socket option. |
ServerSocket | socket()Return the underlying SSL server socket. |
Set<SocketOption<?>> | supportedOptions()Get the set of supported socket options. |
bind, open, validOpsblockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerregisterbegin, close, end, isOpenpublic SSLServerSocketChannel(SSLServerSocket socket)
socket - the SSL server socket to wrappublic SocketChannel accept() throws IOException
accept in class ServerSocketChannelIOException - if an I/O error occurspublic ServerSocketChannel bind(SocketAddress local, int backlog)
bind in class ServerSocketChannellocal - the socket address to bind to (ignored)backlog - the backlog length (ignored)UnsupportedOperationException - alwayspublic SocketAddress getLocalAddress()
getLocalAddress in interface NetworkChannelgetLocalAddress in class ServerSocketChannelpublic <T> T getOption(SocketOption<T> name)
T - the type of the socket option valuename - the socket option name (ignored)public void implCloseSelectableChannel()
throws IOExceptionimplCloseSelectableChannel in class AbstractSelectableChannelIOException - if an I/O error occurs while closingpublic void implConfigureBlocking(boolean block)
throws IOExceptionimplConfigureBlocking in class AbstractSelectableChannelblock - true for blocking mode (accepted), false throwsIOException - if an I/O error occursUnsupportedOperationException - if block is falsepublic <T> ServerSocketChannel setOption(SocketOption<T> name, T value)
setOption in interface NetworkChannelsetOption in class ServerSocketChannelT - the type of the socket option valuename - the socket option name (ignored)value - the socket option value (ignored)public ServerSocket socket()
socket in class ServerSocketChannelpublic Set<SocketOption<?>> supportedOptions()