Package com.atlassian.bitbucket.scm.ssh
Interface SshScmRequestHandler
public interface SshScmRequestHandler
Plugin point for handling
SshScmRequest
s.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<SshScmRequest>
create
(SshScmRequestContext context) Returns anSshScmRequest
if this handler can handle the supplied command string, orOptional.empty()
otherwise.boolean
-
Method Details
-
create
Returns anSshScmRequest
if this handler can handle the supplied command string, orOptional.empty()
otherwise.- Parameters:
context
- context describing the request, which can be used by the handler implementation to determine whether it supports the request or not- Returns:
- an
SshScmRequest
if this handler supports the specified command, orOptional.empty()
to indicate that this factory does not support the command - Throws:
com.atlassian.bitbucket.repository.NoSuchRepositoryException
- if this handler supports the specified command, but the requested repository cannot be foundcom.atlassian.bitbucket.AuthorisationException
- if this handler the repository is not accessible- Since:
- 5.12
-
supports
- Parameters:
command
- the command String passed from the remote SSH client (e.g. "git-upload-pack path/to/repository")- Returns:
true
if the handler supports the supplied command,false
otherwise
-