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) |
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() |
C |
setCredentialsProvider(CredentialsProvider credentialsProvider) |
C |
setTimeout(int timeout) |
C |
setTransportConfigCallback(TransportConfigCallback transportConfigCallback) |
call, checkCallable, getRepository, setCallable
protected CredentialsProvider credentialsProvider
protected int timeout
protected TransportConfigCallback transportConfigCallback
protected TransportCommand(Repository repo)
repo
- public C setCredentialsProvider(CredentialsProvider credentialsProvider)
credentialsProvider
- the CredentialsProvider
to usethis
public C setTimeout(int timeout)
timeout
- the timeout used for the transport stepthis
public C setTransportConfigCallback(TransportConfigCallback transportConfigCallback)
protected final C self()
this
protected C configure(Transport transport)
transport
- this
protected C configure(TransportCommand childCommand)
this
commandchildCommand
- this
Copyright © 2017 Eclipse JGit Project. All rights reserved.