Package org.jenkinsci.remoting.engine
Class JnlpProtocolHandlerFactory
java.lang.Object
org.jenkinsci.remoting.engine.JnlpProtocolHandlerFactory
Builds a set of
JnlpProtocolHandler instances from the supplied preconditions.- Since:
- 3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<JnlpProtocolHandler<? extends JnlpConnectionState>>handlers()Creates the list ofJnlpProtocolHandlerinstances that are available with the current configuration.withClientDatabase(JnlpClientDatabase clientDatabase) Add aJnlpClientDatabase.Add aIOHub.withNioChannelHub(NioChannelHub nioChannelHub) Add aNioChannelHub.withPreferNonBlockingIO(boolean preferNio) Set the I/O blocking mode preferenceswithSSLClientAuthRequired(boolean needClientAuth) Set the policy on client authentication certificates to use forJnlpProtocolHandler.handle(Socket, Map, List)calls.withSSLContext(SSLContext context) Add aSSLContext.
-
Constructor Details
-
JnlpProtocolHandlerFactory
Constructor.- Parameters:
threadPool- the thread pool to use.
-
-
Method Details
-
withNioChannelHub
Add aNioChannelHub.- Parameters:
nioChannelHub- theNioChannelHub.- Returns:
thisfor method chaining.
-
withIOHub
Add aIOHub.- Parameters:
ioHub- theIOHub.- Returns:
thisfor method chaining.
-
withSSLContext
Add aSSLContext.- Parameters:
context- theSSLContext.- Returns:
thisfor method chaining.
-
withSSLClientAuthRequired
Set the policy on client authentication certificates to use forJnlpProtocolHandler.handle(Socket, Map, List)calls.- Parameters:
needClientAuth-trueto reject connections over TLS where the client does not present a client certificate.- Returns:
thisfor method chaining.
-
withPreferNonBlockingIO
Set the I/O blocking mode preferences- Parameters:
preferNio-trueto prefer using Non-Blocking I/O techniques,falseto prefer thread-per-connection Blocking I/O.- Returns:
thisfor method chaining.
-
withClientDatabase
public JnlpProtocolHandlerFactory withClientDatabase(@CheckForNull JnlpClientDatabase clientDatabase) Add aJnlpClientDatabase.- Parameters:
clientDatabase- theJnlpClientDatabase.- Returns:
thisfor method chaining.
-
handlers
Creates the list ofJnlpProtocolHandlerinstances that are available with the current configuration.- Returns:
- the
JnlpProtocolHandlerinstances, may be empty, nevernull
-