Uses of Class
com.sshtools.client.tasks.CommandTask.CommandTaskBuilder
Packages that use CommandTask.CommandTaskBuilder
-
Uses of CommandTask.CommandTaskBuilder in com.sshtools.client.tasks
Methods in com.sshtools.client.tasks that return CommandTask.CommandTaskBuilderModifier and TypeMethodDescriptionCommandTask.CommandTaskBuilder.create()
Create a newCommandTask.CommandTaskBuilder
.CommandTask.CommandTaskBuilder.onBeforeExecute
(CommandTask.CommandTaskEvent onBeforeExecute) Set a callback to run before the command is executed.CommandTask.CommandTaskBuilder.onBeforeTask
(CommandTask.CommandTaskEvent onOpen) Set a callback to run when the command has been executed.CommandTask.CommandTaskBuilder.onClose
(CommandTask.CommandTaskEvent onClose) Set a callback to run when the command is closed.CommandTask.CommandTaskBuilder.onTask
(CommandTask.CommandTaskEvent onExecute) Set a callback to run when the command has been executed.CommandTask.CommandTaskBuilder.withAutoConsume()
Set to auto-consume input.CommandTask.CommandTaskBuilder.withAutoConsume
(boolean autoConsume) Set the whether to auto-consume input.CommandTask.CommandTaskBuilder.withCommand
(String command) Set the command to run.CommandTask.CommandTaskBuilder.withEncoding
(String encoding) Set the character encoding to use for transferring string content.CommandTask.CommandTaskBuilder.withEncoding
(Charset encoding) Set the character encoding to use for transferring string content.