Package org.jenkinsci.remoting.nio
Class NioChannelBuilder
java.lang.Object
hudson.remoting.ChannelBuilder
org.jenkinsci.remoting.nio.NioChannelBuilder
ChannelBuilder subtype for NioChannelHub.- Since:
- 2.38
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild(SocketChannel socket) withBaseLoader(ClassLoader base) Specify the classloader used for deserializing remote commands.withCapability(Capability capability) Controls the capabilities that we'll advertise to the other side.withClassFilter(ClassFilter filter) Replaces theClassFilterused by the channel.withHeaderStream(OutputStream header) If non-null, receive the portion of data inisbefore the data goes into the "binary mode".withJarCache(JarCache jarCache) Sets the JAR cache storage.withMode(Channel.Mode mode) The encoding to be used over the stream.Resets JAR Cache setting to the default.withRestricted(boolean restricted) For compatibility reasons, activates/disables all the security restriction features.Methods inherited from class hudson.remoting.ChannelBuilder
build, build, getBaseLoader, getCapability, getClassFilter, getDecorators, getExecutors, getHeaderStream, getJarCache, getMode, getName, getProperties, isArbitraryCallableAllowed, isRemoteClassLoadingAllowed, isRestricted, makeTransport, negotiate, with, withArbitraryCallableAllowed, withJarCacheOrDefault, withProperty, withProperty, withRemoteClassLoadingAllowed, withRoleChecker, withRoles, withRoles
-
Method Details
-
build
- Overrides:
buildin classChannelBuilder- Throws:
IOException
-
build
- Throws:
IOException
-
build
- Overrides:
buildin classChannelBuilder- Throws:
IOException
-
withBaseLoader
Description copied from class:ChannelBuilderSpecify the classloader used for deserializing remote commands. This is primarily related toChannel.getRemoteProperty(Object). Sometimes two parties communicate over a channel and pass objects around as properties, but those types might not be visible from the classloader loading theChannelclass. In such a case, specify a classloader so that those classes resolve. If null,Channel.class.getClassLoader()is used.- Overrides:
withBaseLoaderin classChannelBuilder
-
withMode
Description copied from class:ChannelBuilderThe encoding to be used over the stream.- Overrides:
withModein classChannelBuilder
-
withCapability
Description copied from class:ChannelBuilderControls the capabilities that we'll advertise to the other side.- Overrides:
withCapabilityin classChannelBuilder
-
withHeaderStream
Description copied from class:ChannelBuilderIf non-null, receive the portion of data inisbefore the data goes into the "binary mode". This is useful when the established communication channel might include some data that might be useful for debugging/trouble-shooting.- Overrides:
withHeaderStreamin classChannelBuilder
-
withRestricted
Description copied from class:ChannelBuilderFor compatibility reasons, activates/disables all the security restriction features.- Overrides:
withRestrictedin classChannelBuilder
-
withJarCache
Description copied from class:ChannelBuilderSets the JAR cache storage.- Overrides:
withJarCachein classChannelBuilder- Parameters:
jarCache- JAR Cache to be used. If a deprecatednullvalue is passed, the behavior will be determined by theChannelimplementation.- Returns:
this
-
withoutJarCache
Description copied from class:ChannelBuilderResets JAR Cache setting to the default. The behavior will be determined by theChannelimplementation.- Overrides:
withoutJarCachein classChannelBuilder
-
withClassFilter
Description copied from class:ChannelBuilderReplaces theClassFilterused by the channel. By default,ClassFilter.DEFAULTis installed.- Overrides:
withClassFilterin classChannelBuilder
-