|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xebialabs.deployit.hostsession.ssh.SshSudoPasswordPromptHandler
public class SshSudoPasswordPromptHandler
Decorates a CommandExecutionCallbackHandler, handling SUDO password prompts
transparently and removing them from the output passed to the decorated handler.
| Constructor Summary | |
|---|---|
SshSudoPasswordPromptHandler(CommandExecutionCallbackHandler decoratedHandler,
java.io.OutputStream remoteStdin,
java.lang.String password)
|
|
| Method Summary | |
|---|---|
void |
handleErrorLine(java.lang.String line)
Invoked when an executed command generated a line of error (stderr). |
void |
handleOutput(char c)
Invoked when an executed command generates a character of output (stdout). |
void |
handleOutputLine(java.lang.String line)
Invoked when an executed command generated a line of output (stdout). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SshSudoPasswordPromptHandler(CommandExecutionCallbackHandler decoratedHandler,
java.io.OutputStream remoteStdin,
java.lang.String password)
| Method Detail |
|---|
public void handleOutput(char c)
CommandExecutionCallbackHandler
handleOutput in interface CommandExecutionCallbackHandlerc - the character of output generated.public void handleOutputLine(java.lang.String line)
CommandExecutionCallbackHandler
handleOutputLine in interface CommandExecutionCallbackHandlerline - the line of output generated.public void handleErrorLine(java.lang.String line)
CommandExecutionCallbackHandler
handleErrorLine in interface CommandExecutionCallbackHandlerline - the line of output generated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||