Package org.mozilla.jss.ssl.javax
Class JSSServerSocketChannel
java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
java.nio.channels.spi.AbstractSelectableChannel
java.nio.channels.ServerSocketChannel
org.mozilla.jss.ssl.javax.JSSServerSocketChannel
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,InterruptibleChannel
,NetworkChannel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JSSEngine
private ServerSocketChannel
private ServerSocket
private JSSServerSocket
-
Constructor Summary
ConstructorsConstructorDescriptionJSSServerSocketChannel
(JSSServerSocket sslSocket, ServerSocket parentSocket, JSSEngine engine) JSSServerSocketChannel
(JSSServerSocket sslSocket, ServerSocketChannel parent, JSSEngine engine) -
Method Summary
Modifier and TypeMethodDescriptionaccept()
bind
(SocketAddress local, int backlog) Collection
<? extends EventListener> Gets the current list of event listeners this SSLSocket will fire on certain events.<T> T
getOption
(SocketOption<T> name) void
void
implConfigureBlocking
(boolean block) void
setListeners
(Collection<? extends EventListener> listeners) Set the listeners this SSLSocket will fire on certain events.setOption
(SocketOption<T> name, T value) socket()
Set
<SocketOption<?>> Methods inherited from class java.nio.channels.ServerSocketChannel
bind, open, 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
-
Field Details
-
sslSocket
-
parent
-
parentSocket
-
engine
-
-
Constructor Details
-
JSSServerSocketChannel
public JSSServerSocketChannel(JSSServerSocket sslSocket, ServerSocketChannel parent, JSSEngine engine) throws IOException - Throws:
IOException
-
JSSServerSocketChannel
public JSSServerSocketChannel(JSSServerSocket sslSocket, ServerSocket parentSocket, JSSEngine engine) throws IOException - Throws:
IOException
-
-
Method Details
-
accept
- Specified by:
accept
in classServerSocketChannel
- Throws:
IOException
-
bind
- Specified by:
bind
in classServerSocketChannel
- Throws:
IOException
-
setListeners
Set the listeners this SSLSocket will fire on certain events.- See Also:
-
getListeners
Gets the current list of event listeners this SSLSocket will fire on certain events.- See Also:
-
getOption
- Throws:
IOException
-
supportedOptions
-
setOption
- Specified by:
setOption
in interfaceNetworkChannel
- Specified by:
setOption
in classServerSocketChannel
- Throws:
IOException
-
socket
- Specified by:
socket
in classServerSocketChannel
-
getLocalAddress
- Specified by:
getLocalAddress
in interfaceNetworkChannel
- Specified by:
getLocalAddress
in classServerSocketChannel
- Throws:
IOException
-
implCloseSelectableChannel
- Specified by:
implCloseSelectableChannel
in classAbstractSelectableChannel
- Throws:
IOException
-
implConfigureBlocking
- Specified by:
implConfigureBlocking
in classAbstractSelectableChannel
- Throws:
IOException
-