Uses of Class
com.sshtools.client.shell.ExpectShell.ExpectShellBuilder
Packages that use ExpectShell.ExpectShellBuilder
-
Uses of ExpectShell.ExpectShellBuilder in com.sshtools.client.shell
Methods in com.sshtools.client.shell that return ExpectShell.ExpectShellBuilderModifier and TypeMethodDescriptionExpectShell.ExpectShellBuilder.create()Create a new builder.ExpectShell.ExpectShellBuilder.withDetectSettings(boolean detectSettings) Set whether the operating system and it's settings should be detected by examining the stream.ExpectShell.ExpectShellBuilder.withEncoding(String encoding) Set the character encoding to use for transferring string content.ExpectShell.ExpectShellBuilder.withEncoding(Charset encoding) Set the character encoding to use for transferring string content.ExpectShell.ExpectShellBuilder.withInput(InputStream input) Select theInputStreamto read input from.ExpectShell.ExpectShellBuilder.withOS(int os) Deprecated, for removal: This API element is subject to removal in a future version.ExpectShell.ExpectShellBuilder.withOS(ExpectShell.OS os) Specify the operating system for this shell.ExpectShell.ExpectShellBuilder.withoutDetectSettings()Prevent operating system and it's settings being detected by examining the stream.ExpectShell.ExpectShellBuilder.withOutput(OutputStream output) Select theOutputStreamto write output to.ExpectShell.ExpectShellBuilder.withPasswordErrorText(String passwordErrorText) Set the pattern to look for to indicate failure of a password when prompted.ExpectShell.ExpectShellBuilder.withPasswordPrompt(String passwordPrompt) Set the pattern to look for for elevated commands usingExpectShell.su(String)and friends that require a password.ExpectShell.ExpectShellBuilder.withSession(SessionChannelNG session) Specify the session to use, from which theInputStreamandOutputStreamcan be derived.ExpectShell.ExpectShellBuilder.withSession(AbstractSessionTask<SessionChannelNG> session) Specify the remote server identification, which may be used as part of operating system detection.ExpectShell.ExpectShellBuilder.withStartupTimeout(Duration startupTimeout) How long to wait for the shells first prompt before giving up and failing.ExpectShell.ExpectShellBuilder.withStartupTimeoutSec(int startupTimeout) How long to wait in seconds for the shells first prompt before giving up and failing.ExpectShell.ExpectShellBuilder.withTask(AbstractSessionTask<SessionChannelNG> task) Specify the task from which to derive the session to use, from which theInputStreamandOutputStreamcan be derived.ExpectShell.ExpectShellBuilder.withTrigger(ShellStartupTrigger trigger) Set a callback that is invoked to query if a command line would allow a shell to start.