| com.atlassian.stash.scm.ssh.SshScmRequestHandler |
Summary
| Public Methods |
|
@Nullable
SshScmRequest
|
create(String remoteCommand, InputStream in, OutputStream out, OutputStream error, ExitCodeCallback exitCodeCallback)
Returns an SshScmRequest if this handler can handle the supplied command string, or null
otherwise.
|
Public Methods
@Nullable
public
SshScmRequest
create
(String remoteCommand, InputStream in, OutputStream out, OutputStream error, ExitCodeCallback exitCodeCallback)
Returns an SshScmRequest if this handler can handle the supplied command string, or null
otherwise.
Parameters
| remoteCommand
| the command String passed from the remote SSH client (e.g. "git upload-pack path/to/repository") |
| in
| the java.io.InputStream from the remote client |
| out
| the java.io.OutputStream for writing output to the remote client |
| error
| the error java.io.OutputStream for writing to the remote client's error stream |
| exitCodeCallback
| used to set the exit code returned to the remote client. If the callback is not invoked
a return code of 1 will be used |
Returns
- an
SshScmRequest if this factory supports the specified command, or null to indicate that
this factory does not support the command.