C - T - Callable<T>CloneCommand, FetchCommand, LsRemoteCommand, PullCommand, PushCommand, SubmoduleAddCommand, SubmoduleUpdateCommandpublic abstract class TransportCommand<C extends GitCommand,T> extends GitCommand<T>
Transport during execution.
This class provides standard configuration of a transport for options such as
a CredentialsProvider, a timeout, and a
TransportConfigCallback.
| Modifier and Type | Field | Description |
|---|---|---|
protected CredentialsProvider |
credentialsProvider |
Configured credentials provider
|
protected int |
timeout |
Configured transport timeout
|
protected TransportConfigCallback |
transportConfigCallback |
Configured callback for transport configuration
|
repo| Modifier | Constructor | Description |
|---|---|---|
protected |
TransportCommand(Repository repo) |
| Modifier and Type | Method | Description |
|---|---|---|
protected C |
configure(TransportCommand childCommand) |
Configure a child command with the current configuration set in
this command |
protected C |
configure(Transport transport) |
Configure transport with credentials provider, timeout, and config
callback
|
protected C |
self() |
|
C |
setCredentialsProvider(CredentialsProvider credentialsProvider) |
|
C |
setTimeout(int timeout) |
|
C |
setTransportConfigCallback(TransportConfigCallback transportConfigCallback) |
call, checkCallable, getRepository, setCallableprotected CredentialsProvider credentialsProvider
protected int timeout
protected TransportConfigCallback transportConfigCallback
protected TransportCommand(Repository repo)
repo - public C setCredentialsProvider(CredentialsProvider credentialsProvider)
credentialsProvider - the CredentialsProvider to usethispublic C setTimeout(int timeout)
timeout - the timeout used for the transport stepthispublic C setTransportConfigCallback(TransportConfigCallback transportConfigCallback)
protected final C self()
thisprotected C configure(Transport transport)
transport - thisprotected C configure(TransportCommand childCommand)
this commandchildCommand - thisCopyright © 2018. All rights reserved.