|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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
this
public C setTimeout(int timeout)
timeout
- the timeout used for the transport step
this
public 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.
this
protected final C self()
this
protected C configure(Transport transport)
transport
-
this
protected C configure(TransportCommand childCommand)
this
command
childCommand
-
this
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |