public class JnlpProtocolHandlerFactory extends Object
JnlpProtocolHandler instances from the supplied preconditions.| Constructor and Description |
|---|
JnlpProtocolHandlerFactory(ExecutorService threadPool)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<JnlpProtocolHandler<? extends JnlpConnectionState>> |
handlers()
Creates the list of
JnlpProtocolHandler instances that are available with the current configuration. |
JnlpProtocolHandlerFactory |
withClientDatabase(JnlpClientDatabase clientDatabase)
Add a
JnlpClientDatabase. |
JnlpProtocolHandlerFactory |
withIOHub(IOHub ioHub)
Add a
IOHub. |
JnlpProtocolHandlerFactory |
withNioChannelHub(NioChannelHub nioChannelHub)
Add a
NioChannelHub. |
JnlpProtocolHandlerFactory |
withPreferNonBlockingIO(boolean preferNio)
Set the I/O blocking mode preferences
|
JnlpProtocolHandlerFactory |
withSSLClientAuthRequired(boolean needClientAuth)
Set the policy on client authentication certificates to use for
JnlpProtocolHandler.handle(Socket, Map, List) calls. |
JnlpProtocolHandlerFactory |
withSSLContext(SSLContext context)
Add a
SSLContext. |
public JnlpProtocolHandlerFactory(@NonNull
ExecutorService threadPool)
threadPool - the thread pool to use.public JnlpProtocolHandlerFactory withNioChannelHub(@CheckForNull NioChannelHub nioChannelHub)
NioChannelHub.nioChannelHub - the NioChannelHub.this for method chaining.public JnlpProtocolHandlerFactory withIOHub(@CheckForNull IOHub ioHub)
IOHub.ioHub - the IOHub.this for method chaining.public JnlpProtocolHandlerFactory withSSLContext(@CheckForNull SSLContext context)
SSLContext.context - the SSLContext.this for method chaining.public JnlpProtocolHandlerFactory withSSLClientAuthRequired(boolean needClientAuth)
JnlpProtocolHandler.handle(Socket, Map, List) calls.needClientAuth - true to reject connections over TLS where the client does not present a client
certificate.this for method chaining.public JnlpProtocolHandlerFactory withPreferNonBlockingIO(boolean preferNio)
preferNio - true to prefer using Non-Blocking I/O techniques, false to prefer
thread-per-connection Blocking I/O.this for method chaining.public JnlpProtocolHandlerFactory withClientDatabase(@CheckForNull JnlpClientDatabase clientDatabase)
JnlpClientDatabase.clientDatabase - the JnlpClientDatabase.this for method chaining.@NonNull public List<JnlpProtocolHandler<? extends JnlpConnectionState>> handlers()
JnlpProtocolHandler instances that are available with the current configuration.JnlpProtocolHandler instances, may be empty, never nullCopyright © 2004–2022. All rights reserved.