C - T - public 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 and Description | 
|---|---|
protected CredentialsProvider | 
credentialsProvider
Configured credentials provider 
 | 
protected int | 
timeout
Configured transport timeout 
 | 
protected TransportConfigCallback | 
transportConfigCallback
Configured callback for transport configuration 
 | 
repo| Modifier | Constructor and Description | 
|---|---|
protected  | 
TransportCommand(Repository repo)
Constructor for TransportCommand. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected C | 
configure(Transport transport)
Configure transport with credentials provider, timeout, and config
 callback 
 | 
protected C | 
configure(TransportCommand childCommand)
Configure a child command with the current configuration set in
  
this command | 
protected C | 
self()
Return this command cast to  
C | 
C | 
setCredentialsProvider(CredentialsProvider credentialsProvider)
Set the  
credentialsProvider. | 
C | 
setTimeout(int timeout)
Set  
timeout. | 
C | 
setTransportConfigCallback(TransportConfigCallback transportConfigCallback)
Set the  
TransportConfigCallback. | 
call, checkCallable, getRepository, setCallableprotected CredentialsProvider credentialsProvider
protected int timeout
protected TransportConfigCallback transportConfigCallback
protected TransportCommand(Repository repo)
Constructor for TransportCommand.
repo - a Repository object.public C setCredentialsProvider(CredentialsProvider credentialsProvider)
credentialsProvider.credentialsProvider - the CredentialsProvider to
            usethispublic C setTimeout(int timeout)
timeout.timeout - the timeout (in seconds) used for the transport stepthispublic C setTransportConfigCallback(TransportConfigCallback transportConfigCallback)
TransportConfigCallback.protected final C self()
Cthis cast to Cprotected C configure(Transport transport)
transport - a Transport object.thisprotected C configure(TransportCommand childCommand)
this commandchildCommand - a TransportCommand object.thisCopyright © 2020 Eclipse JGit Project. All rights reserved.