|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jgit.api.GitCommand<T>
org.eclipse.jgit.api.TransportCommand<C,T>
C - T - public abstract class TransportCommand<C extends GitCommand,T>
Base class for commands that use a Transport during execution.
This class provides standard configuration of a transport for options such as
a CredentialsProvider, a timeout, and a
TransportConfigCallback.
| Field Summary | |
|---|---|
protected CredentialsProvider |
credentialsProvider
Configured credentials provider |
protected int |
timeout
Configured transport timeout |
protected TransportConfigCallback |
transportConfigCallback
Configured callback for transport configuration |
| Fields inherited from class org.eclipse.jgit.api.GitCommand |
|---|
repo |
| Constructor Summary | |
|---|---|
protected |
TransportCommand(Repository repo)
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.eclipse.jgit.api.GitCommand |
|---|
call, checkCallable, getRepository, setCallable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CredentialsProvider credentialsProvider
protected int timeout
protected TransportConfigCallback transportConfigCallback
| Constructor Detail |
|---|
protected TransportCommand(Repository repo)
repo - | Method Detail |
|---|
public C setCredentialsProvider(CredentialsProvider credentialsProvider)
credentialsProvider - the CredentialsProvider to use
thispublic C setTimeout(int timeout)
timeout - the timeout used for the transport step
thispublic C setTransportConfigCallback(TransportConfigCallback transportConfigCallback)
transportConfigCallback - if set, the callback will be invoked after the
Transport has created, but before the
Transport is used. The callback can use this
opportunity to set additional type-specific configuration on
the Transport instance.
thisprotected final C self()
thisprotected C configure(Transport transport)
transport -
thisprotected C configure(TransportCommand childCommand)
this command
childCommand -
this
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||